My first step is read step by step "The Definitive Guide to Yii" and trying to dev a minimal application and figure out it's behavior in spite of what is written in the manual.
As an older Prado's developer, I am trying to see the diferences of both, and I would like to share some questions or doubts finding in my studies.
Go to someones:
YIIC generates all sort of php code without ending php tag "?>". Why ?
Application Life Cycle hide important aspects that are not so easy to be deducted (for a newbie).
Suppose that I has created (with yiic) a MyApp application and I call it with http://localhost/MyApp. What exactly we can see into App life cycle ?
2.1) Apache seeks and finds the app entry point: index.php at /protected subdir;
2.2) This script, includes yii framework and creates (instancing) the App singleton object configured by /protected/config/main.php script;
2.3) The main.php with "return array();" as a minimal code, deliberately invoking the /protected/controllers/SiteController.php script;
I will stop here and comment 2 arbitrariness that surprised me.
First of all why I need to say for a App constructor that the application configuration file is one with a specific name? Why doesn't the constructor search for a file with a standardized name? Something like "application.cfg" file !?
Second. Unlike the use of standardized names, Who said to maim.php file to sidetrack the flow to the SiteController file? By chance the Application's defaultController property contains its default value equal to "site"?