init() public method

public init ( )
コード例 #1
0
 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.");
     }
 }
コード例 #2
0
 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.");
     }
 }
コード例 #3
0
ファイル: YginModelCode.php プロジェクト: Cranky4/npfs
 public function init()
 {
     parent::init();
     if (!$this->tablePrefix) {
         $this->tablePrefix = 'pr_';
     }
 }
コード例 #4
0
ファイル: SnapModelCode.php プロジェクト: snapfrozen/snapcms
 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();
 }
コード例 #5
0
 public function init()
 {
     $this->giiyModule = Yii::app()->getModule('giiy');
     $this->modelPath = $this->giiyModule->modelsPaths[0];
     parent::init();
 }