PacktLib: Zend Framework 1.8 Web Application Development

Zend Framework 1.8 Web Application Development

Credits

About the Author

About the Reviewers

Preface

Creating a Basic MVC Application

Overview of MVC architecture

Setting up the environment

Installation

Creating the project structure

Application directory structure

Bootstrapping

Your first controller

Your first view

Handling errors

Summary

The Zend Framework MVC Architecture

Zend framework MVC overview

The Front Controller

The router

The Dispatcher

The Request object

The Response object

Summary

Storefront Basic Setup

Getting started

The Storefront requirements

The Storefront overview

Basic structure and setup

Building the Storefront

The Storefront database

Logging and debugging

Summary

Storefront Models

Models in the Zend Framework

Model design

Storefront Models

Loading Models and Resources

The SF Library

Summary

Implementing the Catalog

Getting started

Creating the Catalog Model and Resources

Zend_Db_Table

Model Resource Items

Implementing the Catalog Model

Catalog Model

Loading Models and other assets

Creating the Catalog Controllers

Creating the Catalog Views

Building and running the storefront

Summary

Implementing User Accounts

Creating the user model and resources

Creating the Customer Controller

Zend_Form

Creating the Customer Views

Building the application

Summary

The Shopping Cart

Creating the Cart Model and Resources

Creating the Cart Controller

Creating the Cart Views and Forms

Summary

Authentication and Authorization

Authentication versus Authorization

Authentication with Zend_Auth

Authorization with Zend_Acl

Summary

The Administration Area

What is an administration area?

Implementing the storefront administration area

Catalog management

Securing the administration area

Summary

Storefront Roundup

Using multiple modules

Services

Summary

Storefront Optimization

General optimizations

Dispatching optimizations

Caching

Summary

Testing the Storefront

What is testing?

PHPUnit and Zend_Test setup

Writing tests

Testing the Customer Controller

Common problems

Summary

Installing Supporting Software

Installing Supporting Software

Installing Supporting Software

Installing Supporting Software

Index