123456789101112131415161718192021222324 |
- <?php
- class O2oModule extends CWebModule
- {
- public function init()
- {
- $this->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;
- }
- }
|