Yii directory structure

hi. the current directory structure protects protected folders using the deny permission .htaccess directive, but i was wondering in a better approach by separating the index.php front controller and its .hstaccess file in a' let's say, folder named: webroot or webapp or root or something like.

webroot

…index.php

…htaccess

application

…controllers

…views

…models

…etc

system

…yii framework here

this would be a much nicer dir structure i think.

Yes, you can use this directory. You just need to set the basePath in app config as you like.

We can do that way, but if you are really worried, you could put an index.php with nothing in it on all directories. Existing settings work the way they are.