Zend Studio for Eclipse Developer's Guide [NOOK Book]

Overview

This is the eBook version of the printed book.

Read More Show Less
... See more details below
Zend Studio for Eclipse Developer's Guide

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac

Want a NOOK? Explore Now

NOOK Book (eBook)
$17.99
BN.com price
(Save 43%)$31.99 List Price

Overview

This is the eBook version of the printed book.

Read More Show Less

Product Details

  • ISBN-13: 9780132715645
  • Publisher: Pearson Education
  • Publication date: 4/3/2008
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 216
  • File size: 10 MB

Meet the Author

Peter MacIntyre has over 19 years of experience in the information technology industry, primarily in the area of software development. He is a Zend Certified Engineer, and his technical skill set includes several web development languages, client/server tools, and relational database systems such as PHP, PowerBuilder,Visual Basic, Active Server Pages, and CA-Visual Objects.

MacIntyre has contributed to several books, including Using Visual Objects, Using PowerBuilder 5, ASP.NET Bible, The Web Warrior Guide to Web Programming, and Programming PHP 5, 2nd edition, and is a former contributing editor to the online and in-print magazine called phparchitect. He has spoken several times at North American and international computer conferences, including CA-World in New Orleans, USA; CA-TechniCon in Cologne, Germany; and CA-Expo in Melbourne, Australia. MacIntyre lives and works in Prince Edward Island, Canada, where he runs his own part-time software company called Paladin Business Solutions (www.paladin-bs.com)

 

Ian Morse has a bachelor’s degree in computer science from the University of Prince Edward Island. He has experience working in both the public and private sectors. For the past several years, he has worked as a private consultant and web system developer under the name of geckoWARE.

 

Read More Show Less

Read an Excerpt

IntroductionIntroduction

PHP is currently the most widely used programming language on the Web with over 5 million developers, responsible for 40% of existing web applications. The simplicity of PHP has led to more than 20 million domains written in PHP, with growth continuing. When compared with other languages for achieving the development of a web application, PHP has proven to have tremendous advantage with its simplicity, in terms of the amount of work required and the potential complexity of its code.

The need for an editor or a development environment to create web applications with a short "time to market" is obvious, and different possibilities are available today for the PHP developer community. The possibilities can be categorized into three main groups in which each group introduces a different set of features, addresses different needs, and subsequently is tagged with a different pricing.

The first group, generally known as Simple Editors, includes the most basic feature set, such as syntax highlighting as part of the editor. Some of these editors come with the different operating systems, and some are the evolution of those (for example, NotePad and NotePad++). This group of editors usually doesn't include management tools like debugging or code analyzing tools, and is good for quick pinpoint development rather than large and complex web applications. Most of these editors are free of charge.

Basic Integrated Development Environments (IDEs) are the second group; they include an additional layer of features. These features can include basic debugging, project management, and several analysis tools. Some of these editors arefree of charge, and sometimes they are even open source products.

The last group, known as Professional IDEs, includes all-in-one solution products. These development environments generally include development, management, analyzing, debugging, and deployment tools. The complete feature set in these products provides the capability to support full product development life cycles, starting from the development of the code until the deployment to the production server. A Professional IDE is a commercial product and can include an installation wizard and product support as well.

Over the years we can see a marked increase in the number of developers moving to professional IDEs from the basic editors. The need for team support, deployment tools, and quick development has convinced many companies to invest their money in the purchase of development tools with a quick return of both investment and productivity.

The gap between simple and professional IDEs can also enable some companies to provide a product free as a simple, initial solution. There may also be the option to pay for upgrades and thus be entitled to then use a professional IDE, but this is not always the case.

Zend Studio for Eclipse is based on the Eclipse technology in general and the PHP Development Tools (PDT) project in particular. The decision to develop based on the Eclipse technology was made because there are a few million developers who use Eclipse or Eclipse-based products. Many of those developers are looking at PHP as a way of developing rich Internet applications, and they simply wanted PHP support in Eclipse.

Zend has been working on Zend Studio for Eclipse for quite some time parallel to the development of the PDT Eclipse project. The product has been released a few times to a close group of beta testers to ensure the product stability and user interface usability and to gather feedback and bugs.

This book's authors, Peter MacIntyre and Ian Morse, who have vast experience in the PHP world and have been developing with Zend Studio for Eclipse in the past year, provide a great understanding of Zend Studio for Eclipse and its functionality.

The book provides explanations and instructions on how to use the best professional PHP IDE available today! In this book you also learn to develop web applications in the easiest and most productive way because this book not only introduces you to the many wonders of Zend Studio for Eclipse, but also guides you in developing a small web Customer Relationship Management (CRM) application.

Yossi Leon
Product Manager, Development Tools
Zend Technologies, Inc., the PHP Company

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Table of Contents

        Foreword    ix

        Introduction    1

    1    A First Look at Zend Studio for Eclipse    3

        View    3

        Perspectives    6

        Outline View    8

        Working Sets    9

        Code Editor    10

        Preferences    12

        Summary    13

    2    Creating Projects    15

        Projects Wizard    15

        Zend Framework Project    18

        Multiproject Support    19

        Setting up Working Sets    21

        Importing Projects    22

        Exporting Projects    23

        Creating New Files    24

        Using Link with Editor    25

        Accessing Remote Files    25

        Summary    28

    3    Environmental Settings    29

        The Concept of Perspectives    29

        Zend Studio for Eclipse Preferences    32

            Systemwide Preferences    32

            PHP Preferences    38

        Summary    46

    4    The Code Editor    47

        PHP Code Assist    49

        Code Formatter    50

        Properties View    51

        Summary    52

    5    Views in the PHP Perspective    53

        Getting Started    53

            Outline View    53

            PHP Project Outline View    54

            PHP Functions View    54

            Problems View    55

            Tasks View    56

        Filters    57

        Views in Action    59

        Summary    61

    6    Code Gallery    63

        User Code Gallery    63

        Zend Gallery    65

        Summary    66

    7    Code Analyzer    67

        Configuring the Code Analyzer    67

        Using the Code Analyzer    70

        Summary    71

    8    Refactoring    73

        Rename Local Variables    73

        Rename Global Variables    76

        Rename Data Members    78

        Rename Methods, Functions, and Classes    78

        Move Files and Folders    79

        Summary    81

    9    SQL Integration    83

        Database Development Perspective    83

        Viewing Data    86

        Data Manipulation    88

        Table Manipulations    88

        Summary    89

    10    Testing the Project    91

        Debugging with Console Output    91

        Getting Started with PHPUnit    94

        PHPUnit Test Suites    99

        Summary    100

    11    Introduction to Debugging    101

        Debugging Preferences    101

        Local Debugging    102

        Remote Debugging    103

        Summary    103

    12    Running/Stepping Through Your Code    105

        The Debug Perspective    105

        Breakpoints    106

        Running a Debugging Session    107

        Summary    112

    13    Version Control Integration    113

        Configuration    113

        Creating a CVS Project    116

        Summary    119

    14    The WYSIWYG Designer    121

        The HTML Editor View    122

            Design    122

            Source, Design/Source    123

            Preview    124

        Code Assist/Properties    125

        Summary    127

    15    Integrated Zend Tools    129

        Integration with Zend Guard    129

        Integration with Zend Platform    132

        Summary    133

    16    Zend Framework Library    135

        What Is Model-View-Controller Design?    135

        Creating a Zend Framework Project    136

        Adding to a Framework-Driven Site    137

        Separating Content and Design    139

        Included Framework Libraries    141

            Zend_Acl    141

            Zend_Controller    142

            Zend_Db    142

            Zend_Gdata    143

            Zend_Mail    143

            Zend_Pdf    144

            Zend_Service    144

        Summary    144

    17    Designing the Project    145

        What the Project Will Do    145

        Table Creation SQL    148

        Summary    150

    18    Writing the Project    151

        Setting Up    151

        Writing Some Code    152

        Adding More Functionality    157

        Summary    167

        Appendix Updates, Add-ons, and Resources    169

        Zend Studio for Eclipse Update Process    169

        Adding Third-Party Plug-ins to Zend Studio for
Eclipse    170

        Additional Resources    173

TOC, 0672329409, 2/26/08

Read More Show Less

Preface

Introduction

PHP is currently the most widely used programming language on the Web with over 5 million developers, responsible for 40% of existing web applications. The simplicity of PHP has led to more than 20 million domains written in PHP, with growth continuing. When compared with other languages for achieving the development of a web application, PHP has proven to have tremendous advantage with its simplicity, in terms of the amount of work required and the potential complexity of its code.

The need for an editor or a development environment to create web applications with a short "time to market" is obvious, and different possibilities are available today for the PHP developer community. The possibilities can be categorized into three main groups in which each group introduces a different set of features, addresses different needs, and subsequently is tagged with a different pricing.

The first group, generally known as Simple Editors, includes the most basic feature set, such as syntax highlighting as part of the editor. Some of these editors come with the different operating systems, and some are the evolution of those (for example, NotePad and NotePad++). This group of editors usually doesn't include management tools like debugging or code analyzing tools, and is good for quick pinpoint development rather than large and complex web applications. Most of these editors are free of charge.

Basic Integrated Development Environments (IDEs) are the second group; they include an additional layer of features. These features can include basic debugging, project management, and several analysis tools. Some of these editors are free of charge, and sometimes they are even open source products.

The last group, known as Professional IDEs, includes all-in-one solution products. These development environments generally include development, management, analyzing, debugging, and deployment tools. The complete feature set in these products provides the capability to support full product development life cycles, starting from the development of the code until the deployment to the production server. A Professional IDE is a commercial product and can include an installation wizard and product support as well.

Over the years we can see a marked increase in the number of developers moving to professional IDEs from the basic editors. The need for team support, deployment tools, and quick development has convinced many companies to invest their money in the purchase of development tools with a quick return of both investment and productivity.

The gap between simple and professional IDEs can also enable some companies to provide a product free as a simple, initial solution. There may also be the option to pay for upgrades and thus be entitled to then use a professional IDE, but this is not always the case.

Zend Studio for Eclipse is based on the Eclipse technology in general and the PHP Development Tools (PDT) project in particular. The decision to develop based on the Eclipse technology was made because there are a few million developers who use Eclipse or Eclipse-based products. Many of those developers are looking at PHP as a way of developing rich Internet applications, and they simply wanted PHP support in Eclipse.

Zend has been working on Zend Studio for Eclipse for quite some time parallel to the development of the PDT Eclipse project. The product has been released a few times to a close group of beta testers to ensure the product stability and user interface usability and to gather feedback and bugs.

This book's authors, Peter MacIntyre and Ian Morse, who have vast experience in the PHP world and have been developing with Zend Studio for Eclipse in the past year, provide a great understanding of Zend Studio for Eclipse and its functionality.

The book provides explanations and instructions on how to use the best professional PHP IDE available today! In this book you also learn to develop web applications in the easiest and most productive way because this book not only introduces you to the many wonders of Zend Studio for Eclipse, but also guides you in developing a small web Customer Relationship Management (CRM) application.

Yossi Leon
Product Manager, Development Tools Zend Technologies, Inc., the PHP Company

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)