Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If I understand correctly, then you need to find out the name of the controller in main.php, then:
if ((Yii::app()->controller->id == 'site') and (Yii::app()->controller->action->id == 'index')) {
// тут код
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question