init() public method

public init ( )
 public function init()
 {
     parent::init();
     if (!@class_exists("GtcSaveRelationsBehavior")) {
         throw new CException("Fatal Error: Class 'GtcSaveRelationsBehavior' could not be found in your application! Include the composer autoload.php or add it to your import paths.");
     }
 }
 public function init()
 {
     parent::init();
     if (!@class_exists("CSaveRelationsBehavior")) {
         throw new CException("Fatal Error: Class 'CSaveRelationsBehavior' could not be found in your application! Add 'ext.gtc.components.*' to your import paths.");
     }
 }
Ejemplo n.º 3
0
 public function init()
 {
     parent::init();
     if (!$this->tablePrefix) {
         $this->tablePrefix = 'pr_';
     }
 }
Ejemplo n.º 4
0
 public function init()
 {
     $parentModule = Yii::app()->controller->getModule('gii')->parentModule;
     if ($parentModule) {
         $moduleId = Yii::app()->controller->getModule('gii')->parentModule->id;
         $moduleFolder = str_replace('snapcms/', '', $moduleId);
         $this->modelPath = "application.modules.snapcms.modules.{$moduleFolder}.models";
     }
     parent::init();
 }
Ejemplo n.º 5
0
 public function init()
 {
     $this->giiyModule = Yii::app()->getModule('giiy');
     $this->modelPath = $this->giiyModule->modelsPaths[0];
     parent::init();
 }