public function init() { if (Yii::app()->db === null) { throw new CHttpException(500, 'An active "db" connection is required to run this generator.'); } parent::init(); }
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(); }
public function init() { $this->giiyModule = Yii::app()->getModule('giiy'); parent::init(); }
public function init() { parent::init(); }
public function init() { $this->giiyModule = Yii::app()->getModule('giiy'); parent::init(); // TODO: Change the autogenerated stub }