Answer the question
In order to leave comments, you need to log in
Am I connecting my component in Yii Framework correctly?
Hello!
Now I'm learning to make a website on PHP+Yii Framework 1.1.15. I recently made my own Site.php component file and saved it to /protected/components/. In the Site class I used a descendant of CComponent and in main.php I made the connection like this:
'site'=>array(
'class'=>'application.components.Site',
'sitepage'=>new CController()->route;
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question