manning-sandbox.com/forum.jspa?forumID=329
available to simplify development and make the code more robust. We had a look at both prototype and the
Yahoo! YUI libraries and saw how easy they are to use. To place it all in context, we have also integrated a
mechanism to allow users to feeding back the helpfulness of reviews in Places.
We have now covered all the basics of building a Zend Framework application and fitting out the front end
with the latest technology; it is now time to look in detail at the database functionality provided with the Zend
Framework and how Zend_Db_Table can help us build models that are powerful to use, yet easy to maintain.
Licensed to Menshu You
Please post comments or corrections to the Author Online forum at
http://www.manning-sandbox.com/forum.jspa?forumID=329
5
Managing the Database
For most web sites, a database is a vital part of the application. The Zend Framework acknowledges this with a
comprehensive set to database related components that provide varying levels of abstraction. There are two
important levels of abstraction provided by the Zend Framework??™s database classes: database and table. The
database abstraction provides for independence of your PHP code from the underlying database server used.
Pages:
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149