Answer the question
In order to leave comments, you need to log in
Why isn't SiteController::index() being called like this?
Where to include such piece that it would be possible to cause an action thus SiteController::index() ?
yii1
Answer the question
In order to leave comments, you need to log in
SiteController is a class. In order for a class to call a method via :: (ClassFoo::bar()), the bar method must be static (public static bar() {}).
Read more about this in the documentation.
If you want to do this, most likely you have blurred business logic and controller logic. In general, I don’t know if this will help you, but there is a forward method: www.yiiframework.com/doc/api/1.1/CController#forwa...
Use www.yiiframework.com/doc/api/1.1/CWebApplication#r...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question