hello ,i am lucky be a yii favoriter.i have a question when i study yii framework:


is the sitecontroller necessary for every website ,and it can’t be lack of or deleted .


does the router begin from the actionindex of sitecontroller by default


any help appreciated


best would be when you start reading about controllers.

To simply answer your question: SiteController is not needed…

For example rename SiteController.php to Site2Controller.php and rename the class inside this file to Site2Controller too…

now you can request your pages with index.php?r=site2/yourAction

More information can be found here: (I assume you are chinese)

thank you