Exemplo n.º 1
0
 public function init()
 {
     if (Yii::app()->db === null) {
         throw new CHttpException(500, 'An active "db" connection is required to run this generator.');
     }
     parent::init();
 }
Exemplo n.º 2
0
 public function init()
 {
     // just check if the classes can be found
     if (!@class_exists("GController")) {
         throw new CException("Fatal Error: Class 'GController' could not be found in your application! Add 'ext.gtc.components.*' to your import paths.");
     }
     if (!@class_exists("Relation")) {
         throw new CException("Fatal Error: Class 'Relation' could not be found in your application! Add 'ext.gtc.components.*' to your import paths.");
     }
     parent::init();
 }
Exemplo n.º 3
0
 public function init()
 {
     $this->giiyModule = Yii::app()->getModule('giiy');
     parent::init();
 }
 public function init()
 {
     parent::init();
 }
Exemplo n.º 5
0
 public function init()
 {
     $this->giiyModule = Yii::app()->getModule('giiy');
     parent::init();
     // TODO: Change the autogenerated stub
 }