Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class DebugutilsModule extends CWebServiceModule
- {
- public function init()
- {
- // this method is called when the module is being created
- // you may place code here to customize the module or the application
- // import the module-level models and components
- $this->setImport(array(
- 'debugutils.models.*',
- 'debugutils.components.*',
- ));
- }
- public function beforeControllerAction($controller, $action)
- {
- if(parent::beforeControllerAction($controller, $action))
- {
- // this method is called before any module controller action is performed
- // you may place customized code here
- return true;
- }
- else
- return false;
- }
- public function getUrlRules() {
- $rules = array('debugutils/<action:\w+>/<exturl:\w+>' => array('debugutils/default/<action>'));
- return array_merge($rules, parent::getUrlRules());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment