yeah i included bootstrap in main.php. Actually it works, while am using /admin/default/index after I changed to another controller /admin/activity. It doesn’t show up. I don’t know where I missed.
The modules layout ‘main’ you have assigned in your init() will be ignored on rendering, if a controller has set his own layout.
public $layout='xy';
So take care about this.
Has the other controllers a layout assigned?
If your controllers extends the ‘Controller’ component (usually placed in protected/components) there is a layout assigned, ‘CController’ has no layout assigned and the configured ‘main’ from your init will be used.
I would debug through the Yii core code with a breakpoint at CController::getLayoutFile().