htaccess files to be used, and then restart the Apache
server. See the Apache documentation for more information about this directive.
Finally, because you??™ll need to reference several Zend Framework components
from within your application, and it??™s always wise to ensure maximum application
portability, this directory should be directly accessible by appending it to the php.ini
file??™s include_path directive. For example, on Linux this directive might look like this:
include_path = ".:/usr/local/lib/php/includes/zfw/"
On Windows this directive might look like this:
include_path = ".;c:\php\includes\zfw"
If you don??™t have control over the php.ini file, not to worry; you can place the
following directive in the .htaccess file, which should reside in the server??™s document
root:
php_value include_path ".:/usr/local/lib/php/includes/zfw/"
On Windows the directive might look like this:
php_value include_path "C:\php\includes\zfw\"
The Zend Framework has been configured. If you added the include_path information
to php.ini, you need to restart your Web server in order for the changes to
take effect.
Creating Your First Zend Framework??“Driven Web Site
It??™s a fair bet that even a very simple example will leave you utterly convinced that
frameworks are a development tool you won??™t be able to live without.
CHAPTER 24 ?– MVC AND THE Z END F RAMEWORK 611
Creating the Directory Structure
By default, the Zend Framework relies upon a highly organized application directory
structure known as the conventional modular directory structure.
Pages:
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699