There are
multiple ways to set this, but the easiest user-land method is date_default_timezone_set().
The Zend Framework is written with the assumption that the library directory is available on the
php_include path. There are multiple ways of doing this and the fastest for a global library is to alter the
include_path setting directly in php.ini. A more portable method, especially if you use multiple versions of the
framework on one server, is to set the include path within the bootstrap as we do here (#2).
The Zend Framework applications does not depend on any particular file, however it is useful to have a
couple of helper classes loaded early. Zend_Loader::loadClass() is used ???include??? the correct file for the
supplied class name. The function converts the underscores in the class??™s name to directory separators and
then, after error checking, includes the file. Hence the code line
Zend_Loader::loadClass('Zend_Controller_Front'); and include_once
'Zend/Controller/Front.php'; have the same end result. Zend_Debug::dump() is used to output
debugging information about a variable by providing a formatted var_dump() output.
The final section of the bootstrap sets up the front controller and then runs it. The front controller class,
Zend_Controller_Front implements the Singleton design pattern (#3).
Pages:
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49