application works. This is known as business logic. This is the code that decides how to apply the shipping
cost to an e-commerce order or the code that knows that a user has a first name and a surname. It follows
therefore that retrieving and storing data to a database is within the model layer. In terms of the code, the Zend
Framework provides the Zend_Db_Table class which provides table level access to the database and allows for
easily manipulating the data usThe model part of the MVC pattern is all the code that works behind the scenes related to how this particular
application works. This is known as business logic. This is the code that decides how to apply the shipping
cost to an e-commerce order or the code that knows that a user has a first name and a surname. It follows
therefore that retrieving and storing data to a database is within the model layer. In terms of the code, the Zend
Framework provides the Zend_Db_Table class which provides table level access to the database and allows for
easily manipulating the data used by the application. ed by the application.
