Databases Reference
In-Depth Information
d. Create additional directories in zframework directory to organize your
code. The directory structure should look as shown in Example 3-1.
Example 3-1 zframework directory structure
/app
/models
/views
/controllers
/www
/images
/styles
.htaccess
index.php
/lib
/Zend
Web server configuration
One important goal of modern Web applications (Web sites) is to have clean
URIs (without any attached query parameters). This kind of URI rewrite
support is required from Web server. Zend Framework currently depends on
Apache's mod_rewrite module to redirect all requests to a single file called
index.php that resides in Web server's document root directory and contains
the bootstrap function (in this case, Zend_Controller_Front). The
configuration of the server requires a few steps:
a. The first step is to enable mod_rewrite function of Apache Web server. By
default, this function is not enabled. To enable it:
￿ Uncomment LoadModule for mod_rewrite function in the Apache
configuration file httpd.conf.
￿ You would also need to set the Document Root to .../zframework/www
and change AllowOverride value from NONE to ALL .
After these changes, restarting Web server should enable the
mod_rewrite.
Note: Zend is currently looking for a solution, which does not require
mod_rewrite, for the future. There is a good chance that the final
release of this framework will not require you to perform this setup.
Search WWH ::




Custom Search