The web_root directory

Started by chinmay.sahoo, 05-26-2016, 03:36:20

Previous topic - Next topic

chinmay.sahooTopic starter

To improve the security of a web application, the web server should only have direct access to the files that it needs to serve. As the Zend Framework uses the front controller pattern, all web requests are channeled though a single file, usually called index.php. This file is the only PHP file that needs to be accessible by the web server and so is stored in the web_root/ directory. Other common files that are accessed directly are images, CSS and JavaScript files, so each has their own sub-directory within the web_root directory.

Now that we have an overview of the directory system used by a Zend Framework website, we can proceed to add the files required to create a very simple application that displays some text on the page.