The model provides the business logic for the application which is usually database-based in a web
application. Supporting Zend_Db_Table is Zend_Db which provides object oriented, database independent
access to a variety of different databases, such as MySQL, Postgres, SQL Server, Oracle and SQLite.
The most simplistic setup of the MVC components can be done with the very simple code:
require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run('/path/to/your/controllers');
It is more likely, however, that a more complicated bootstrap file will be required for a non-trivial
application as we will explore in chapter 2 when we build a complete Hello World application in Zend
Framework.
Working with the MVC classes are a couple of separate classes that are used to create the core of a
complete application. The framework encourages convention over configuration, however some configuration
is invariably required (such as database login details). Zend_Config allows for reading configuration data in
Licensed to Menshu You
Please post comments or corrections to the Author Online forum at
http://www.manning-sandbox.com/forum.jspa?forumID=329
either INI or XML formats and includes a useful inheritance system for supporting different configuration
settings on different servers, such as production, staging and test.
Pages:
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28