concept place in category php

appears as: place, places, places, place
Zend Framework in Action

This is an excerpt from Manning's book Zend Framework in Action.

With these four files in place, we have created a minimal Zend Framework application with all the pieces in place for a full-scale website. You should now have a fundamental understanding of how the pieces fit together. Next, we will look at what is happening within Zend Framework’s code, which provides the MVC foundation our code is built upon.

Places to take the kids! is a website that enables parents to fully enjoy a day out, confident that the places they visit will be suitable for their children. The site will welcome a community of users who can review and recommend places to visit. The site provides simple mechanisms for finding places to visit by browsing through categories or by searching. The user will be able to save different places as part of a planned trip, and then can print out the details of their trip later.

Zend_Db_Table provides the fetchAll() function to retrieve multiple rows from the database, so we could directly call it from the controller. However, we’re going to encapsulate the requirements for the home page’s list within the Places class. This is so we keep the database code where it belongs: in the model. It also provides us with a class where we can add further functionality that is specific to the concept of places.

Listing 5.9. Place view script providing location details and a list of reviews
    $ svn copy http://svn.example.com/svn/places/trunk \
    http://svn.example.com/svn/places/tags/chapter-04 \
    -m "Tagging places as snapshot of development at chapter 4."