setImport(array( 'o2o.controllers.*', 'o2o.components.*', )); } public function beforeControllerAction($controller, $action) { $controller->layout = '//layouts/o2o'; if(parent::beforeControllerAction($controller, $action)) { return true; } else return false; } }