Chapter 2. Hello Zend Framework!
Listing 2.1. The bootstrap file, index.php, initializes and runs the application
Listing 2.2. The bootstrap file: public/.htaccess
Listing 2.3. The index controller: application/controllers/IndexController.php
Listing 2.4. The view template: views/scripts/index/index.phtml
Listing 2.5. The FormatCurrency view helper
Listing 2.6. Automatically maintaining date fields in a model
Chapter 3. Building a website with Zend Framework
Listing 3.1. The initial Bootstrap class: application/bootstrap.php
Listing 3.2. An example Zend_Config INI file
Listing 3.3. The initial config.ini file for Places: application/config.ini
Listing 3.4. public/index.php is used to run the application
Listing 3.5. MySQL statements to create and populate the tables with initial data
Listing 3.6. A Places model unit test: tests/Models/PlacesTest.php
Listing 3.7. The TestConfiguration class
Listing 3.8. fetchLatest() ensures the business logic is kept in the model layer
Listing 3.9. The test case for the fetchLatest() method
Listing 3.10. indexAction() displays a list of recently added places
Listing 3.11. Testing the index controller
Chapter 4. Managing the view
Listing 4.1. Starting Zend_Layout in application/bootstrap.php
Listing 4.2. The Places_Controller_Plugin_ViewSetup front controller
Listing 4.3. The master layout script: view/layouts/layout.phtml
Listing 4.4. The header view script: view/layouts/_header.phtml
Listing 4.5. The Places_View_Helper_BaseUrl view helper