ikscher
            (Ikscher)
          
          
          
              
              
          1
          
         
        
          hello ,i am lucky be a yii favoriter.i have a question when i study yii framework:
(大家好,很高兴成为YII框架的一成员,我在学习YII框架的时候有个问题请教下:)
is the sitecontroller  necessary  for every website ,and it can’t be lack of or deleted .
(sitecontroller是必须的吗,对每个站点来说,或者是必不可少的)
does the router begin from  the actionindex of sitecontroller by default
(路由默认是从sitecontroller的actionindex方法开始吗)
any help  appreciated
         
        
          
        
           
           
           
         
         
            
            
          
       
      
        
          
          
            balrok
            (Der Coole Carl)
          
          
          
              
              
          2
          
         
        
          hello,
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: http://www.yiiframework.com/doc/guide/1.1/zh_cn/basics.controller (I assume you are chinese)