[ Index ]

PHP Cross Reference of ACL Module

title

Body

[close]

/ -> AclModule.php (source)

   1  <?php
   2  
   3  class AclModule extends CWebModule
   4  {
   5  	public function init()
   6      {
   7          // this method is called when the module is being created
   8          // you may place code here to customize the module or the application
   9  
  10          // import the module-level models and components
  11          $this->setImport(array(
  12              'acl.models.*',
  13              'acl.components.*',
  14          ));
  15                  Strategy::initialize();
  16      }
  17  
  18  	public function beforeControllerAction($controller, $action)
  19      {
  20          if(parent::beforeControllerAction($controller, $action))
  21          {
  22              // this method is called before any module controller action is performed
  23              // you may place customized code here
  24              return true;
  25          }
  26          else
  27              return false;
  28      }
  29  }


Generated: Sun Jul 1 19:24:45 2012 Cross-referenced by PHPXref 0.7.1