Cover image for Zend Framework 1.8 Web Application Development.
Zend Framework 1.8 Web Application Development.
Title:
Zend Framework 1.8 Web Application Development.
Author:
Pope, Keith.
ISBN:
9781847194237
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (435 pages)
Contents:
Zend Framework 1.8 Web Application Development -- Table of Contents -- Zend Framework 1.8 Web Application Development -- Credits -- About the Author -- About the Reviewers -- Preface -- Brief history and future developments -- What is it and why use it -- Licensing -- Quality -- Simplicity -- Flexibility -- Out-of-the-box features -- Community -- What this book covers -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code for the book -- Errata -- Piracy -- Questions -- 1. Creating a Basic MVC Application -- Overview of MVC architecture -- Setting up the environment -- Installation -- Creating the project structure -- Application directory structure -- Bootstrapping -- The index file -- Application configuration -- The bootstrap file -- Your first controller -- The Action Controller -- Subclassing -- Initialization -- Actions -- The standard router -- Utility methods -- _forward utility method -- _redirect utility method -- Action Helpers -- Your first view -- View directories -- Creating a view -- View Helpers -- URL View Helper -- View customization -- Handling errors -- Summary -- 2. The Zend Framework MVC Architecture -- Zend framework MVC overview -- What is a request -- Request handling -- Abstractness of MVC components -- The Front Controller -- Design -- Defaults -- Using the Front Controller -- Invocation parameters -- Options -- Modules, controllers, and actions -- MVC component customization -- Plugins -- The router -- Design -- Defaults -- Using the router -- Zend_Controller_Router_Route -- Zend_Controller_Router_Route_Static -- Zend_Controller_Router_Route_Regex -- Zend_Controller_Router_Route_Hostname -- Zend_Controller_Router_Route_Chain -- Zend_Config -- The Dispatcher -- Design -- Request dispatching -- Using the Dispatcher -- The Request object -- Design -- Defaults.

Using the Request object -- The HTTP Request object -- The Response object -- Design -- Defaults -- Using the Response object -- Summary -- 3. Storefront Basic Setup -- Getting started -- Software requirements -- Coding standards -- The Storefront requirements -- The Storefront overview -- Basic structure and setup -- The directory structure -- Bootstrapping with Zend_Application -- Zend_Application basics -- Bootstrapping the storefront -- Zend_Application configuration -- Configuration options -- Autoloader namespaces -- PHP settings -- Bootstrap class path -- Bootstrap resource plugins -- Using an array -- Environment specific configuration -- The bootstrap class -- Bootstrap resource execution order -- Bootstrap abstract class -- Creating the bootstrap resources -- Locale initialization -- View initialization -- Instantiating Zend_View -- Doctype and encoding -- Adding metadata -- Adding CSS stylesheets -- Setting the document title -- Bootstrapping complete -- The basic layout -- A little task for you -- Building the Storefront -- The Storefront database -- Database installation -- Product table -- ProductImage table -- Category table -- The user table -- Introducing Zend_Db -- Adding Zend_Db to the Storefront -- Logging and debugging -- Zend_Debug -- Zend_Log -- Adding Zend_Log to the Storefront -- Using the logger -- Database profiling with Zend_Log -- Summary -- 4. Storefront Models -- Models in the Zend Framework -- Model design -- The application stack -- Fat Model Skinny Controller -- Fat Controller -- Fat Model -- Model design strategies -- Direct inheritance -- Has-a relationship (composition) -- Domain Model -- Further reading -- Storefront Models -- Model Resources -- Managing Model Resources -- Model Resource data sources -- Model Resource Items -- Resource Item business logic -- Loading Models and Resources.

Zend_Loader_Autoloader_Resource -- Resource Autoloading -- The SF Library -- Summary -- 5. Implementing the Catalog -- Getting started -- Creating the Catalog Model and Resources -- Catalog model skeleton -- Naming conventions -- Catalog methods -- Catalog Model Resources -- Zend_Db_Table -- Zend_Db_Table basic usage -- Zend_Db_Table relationships -- Model Resource Items -- SF_Model_Resource_Db_Table_Row_Abstract -- Creating the Model Resource Items -- Implementing the Catalog Model -- Model Resource interfaces -- Model Resource implementation -- Category Model Resource -- Category Resource Item -- Product Model Resource -- Product Resource Item -- ProductImage Resource Item -- Catalog Model -- Loading Models and other assets -- Configuring the Autoloader -- The Zend_Db_Table bug -- Creating the Catalog Controllers -- CategoryController -- Action Stack Front Controller Plugin -- CatalogController -- Storefront routes -- Creating the Catalog Views -- Category views -- Catalog views -- Catalog View Helpers -- View Helper creation -- Best practices -- Creating the Catalog View Helpers -- Building and running the storefront -- Summary -- 6. Implementing User Accounts -- Creating the user model and resources -- User model -- User Model Resources -- Creating the Customer Controller -- Zend_Form -- Basic forms -- What is a Form? -- Creating a Form -- Customizing Zend_Form's output -- The Decorator pattern -- Zend_Form's Decorators -- Form elements -- The Form -- Display Groups and Subforms -- Fixing the login forms HTML -- The User forms -- A Typical Form element -- Custom validators -- Unique email validator -- Password verification validator -- Using custom validators, filters, and decorators -- Base form decorators -- Specializing forms -- Creating the Customer Views -- Building the application -- Summary -- 7. The Shopping Cart.

Creating the Cart Model and Resources -- Cart Model -- Cart Model interfaces -- Cart Model implementation -- Cart Model Resources -- Shipping Model -- Creating the Cart Controller -- Creating the Cart Views and Forms -- Cart forms -- Add form -- Table form -- SF_Form_Abstract -- Cart View Helper -- Cart View scripts -- Cart view.phtml -- Cart _cart.phtml -- Layout main.phtml -- Catalog index.phtml -- Catalog view.phtml -- Summary -- 8. Authentication and Authorization -- Authentication versus Authorization -- Authentication with Zend_Auth -- Zend_Auth -- Authentication adapters -- Authentication results -- Identity persistence -- Authentication Service -- Customer Controller -- Authentication View Helper -- Other Authentication Service elements -- Authorization with Zend_Acl -- Zend_Acl introduction -- ACL in MVC -- Using a centralized global ACL -- Using module specific ACL's -- ACL in the Domain layer -- Model based ACL -- The Storefront ACL -- The Storefront roles -- The Storefront resources -- The new base model -- Securing the User Model -- Non-Model ACL -- Unit testing with ACL -- Summary -- 9. The Administration Area -- What is an administration area? -- Implementation options -- Implementing the storefront administration area -- Admin Route -- Admin context Front Controller plugin -- Admin layout -- Admin controller -- Catalog management -- Adding products -- Product add form -- Sharing form elements -- Custom filters -- Catalog Model -- Catalog Controller -- Securing the administration area -- ACL action helper -- Securing the Admin functions -- Catalog Model ACL -- Summary -- 10. Storefront Roundup -- Using multiple modules -- Setup -- Configuring Zend_Application -- Bootstrapping modules -- Module specific configuration -- Sharing common elements -- Services -- Services for cross module communication.

Services for extending model behavior -- Summary -- 11. Storefront Optimization -- General optimizations -- Opcode caching -- Path optimizations -- Requires and includes -- Standard caches -- Plugin loader cache -- Db table cache -- Dispatching optimizations -- Caching -- Zend_Cache -- Model data caching -- Basic class caching -- Model cache integration -- The abstract cache class -- The concrete cache class -- Model abstract modifications -- Caching the product listing -- Saving new data -- Fixing Zend_Db_Table_Row exceptions -- Summary -- 12. Testing the Storefront -- What is testing? -- PHPUnit and Zend_Test setup -- PHPUnit setup -- Zend_Test setup -- Handling the database -- Writing tests -- Running tests -- Adding tests to the build -- Testing the Customer Controller -- Running the Customer Controller test -- Common problems -- Summary -- A. Installing Supporting Software -- Installing PHPUnit -- Installing Xdebug -- Windows installation -- Linux based installation -- OSX Installation -- Configuration -- Installing Apache Ant -- Windows installation -- Linux installation -- Index.
Abstract:
Design, develop, and deploy feature-rich PHP web applications with this MVC framework.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: