Hello guys! I read the wiki article about the directory structure of yii. I found it very amazing but I have some confusion about it that i wanted to get clarified.
My questions are the following:
In the entry script index.php, from what config files do you include?.. the ones on the frontend? Or the ones on the common folder?
Do you have to use path aliases all the time when including classes (like including classes from common to the frontend) or you should import them first in the config files?
Is it necessary that you change properties such as basePath, runtimePath, extensionPath, controllerPath, and etc. to make the directory structure work?
On what folders you should modify .htaccess to "deny from all"?
I don’t quite understand it a bit. You mean the index.php found on frontend/www? How about in the common folder? Does it also have an index.php file? Or in frontend config, you import the files found on common?
How about the index.php on the top-level folder?
So how is it going to look like in the address bar? http://localhost/frontend/www/index.php? How to set webroot to be frontend/www? Is it through .htaccess?
My questions seems to be somehow non-sense. I apologize for that. It’s just that I somehow don’t understand quite a few things pertaining to this.
I have another question. What should be in the application bootstrap index.php?.. how should it differ from the index.php found on the backend and frontend?
Setting up Apache VHost was the answer indeed. Don’t forget to modify the Windows host file (if working working on a Win machine) - usually located at: C:\Windows\system32\drivers\etc\hosts.