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."); } }
public function init() { parent::init(); if (!$this->tablePrefix) { $this->tablePrefix = 'pr_'; } }
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(); }
public function init() { $this->giiyModule = Yii::app()->getModule('giiy'); $this->modelPath = $this->giiyModule->modelsPaths[0]; parent::init(); }