The only 'framework' file in public in you index.php which loads your bootstrap. You could move it up a level and adjust the include paths accordingly.
I've done this as well, since I'm running some sites on Plesk systems where we don't have write access to the level containing the webroot. Vincent de Lau [email protected] From: Alan Wagstaff [mailto:[email protected]] Sent: Monday, January 05, 2009 11:45 PM To: Zend Framework General Subject: [fw-general] Project Structure / Public directory Hi all, In most of the ZF tutorials I have read (ZF Quickstart, Rob's one, ZF Book), they all recommend setting your Apache's webroot to your /zfapp/public/ directory for security reasons. I can understand the logic, putting the application / library directory outside of the webroot is a good thing but I'm thinking ahead to distribution and struggling to understand. Take for example, vBulletin - a popular forum software. When you download vBulletin, you unzip it, grab the /forum directory and dump it in your webroot. Then visit http://www.example.com/forum and there's your forum. You could also put it in /community/forum and it would work just as well. I don't really understand how I could do that with ZF using the recommend project structure. How would I go about setting up my project structure / .htaccess so the end user could put my app in whatever sub-folder they wanted on their website, and not just in the webroot? Thanks in advance :) Alan.
