Prev | Current Page 33 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

application
2. library
3. tests
4. web_root
2.2.1 The application directory
The application directory contains all the code required to run the application and is not directly accessed by
the web server. In order to emphasize the separation between display, business and control logic, there are
three separate directories within application to contain the model, view and controller files. Other directories
may be created as required, for example for configuration files.
2.2.2 The library directory
All applications use library code as everyone reuses previously written code! In a Zend Framework
application, the framework itself is obviously stored here. However other libraries such as a custom super-set
of the framework, a database ORM library such as Propel, or a template engine such as Smarty may also be
used.
Libraries can be stored anywhere that the application can find them - either in a global directory or a local
one. A global include directory is one that is accessible to all PHP applications on the server, such as
/usr/php_include (or c:\code\php_include for Windows) and is set using the include_path setting within the
php.ini configuration file. Alternatively, each application can store its libraries locally within the application??™s
directory.


Pages:
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
motoryzacja szkoła narciarska wyrejestrowanie samochodu legnica obciążniki Wczasy nad morzem