I make a MainBanner widget which i want to show only in index. How to check if current action is index(site/index) inside widget?. thanks
I make a MainBanner widget which i want to show only in index. How to check if current action is index(site/index) inside widget?. thanks
Yii::app()->controller->action->id == 'index';
thanks a lot