I'm currently developing a PHP web application which uses Yii framework.
As I want to prevent direct access from web browser to some files required by Yii, I moved both framework and protected folders outside htdocs folder.
As a result, I ended up with the following folder setup:
/apache22/htdocs
/apache22/htdocs/myproject/index.php -- Yii bootstrap file
/apache22/htdocs/myproject/css
/apache22/htdocs/myproject/js
/apache22/htdocs/myproject/images/apache22/vendor/yii-1.1.10 -- Yii framework folder outside documents root
/apache22/htdocs-private/myproject/protected
/apache22/htdocs-private/myproject/runtime
As you can see, only the bootstrap file and some other required css, js and image files are available to be accessed directly from the web browser. All other files such as Yii core framework and specific application private files generated by Yii inside protected and runtime folders are located outside my application web root.
While this setup is fine and secure as recommended by Yii framework, when putting all of them together in Netbeans I'm unable to have this separation. It seems Netbeans does not allow me to have files in the same project located in different folder levels in my webserver.
I'm wondering whether or not the only solution would be to create separate netbeans projects: One for the public website part and the other one for the private website part.
Any suggestions ?
Best Regards.