/** * Inits generator */ public function init() { if (!isset($this->templates[self::TMPL_NAME])) { $this->templates[self::TMPL_NAME] = $this->metronicTemplate(); } return parent::init(); }
/** * {@inheritdoc} */ public function init() { parent::init(); $this->providerList = self::getCoreProviders(); }
/** * Prepare providers * * @param array $data * @param null $formName * * @return bool|void */ public function init() { \Yii::trace("Initializing giiant CRUD generator for model '{$this->modelClass}'", __METHOD__); parent::init(); }
/** * {@inheritdoc} */ public function init() { parent::init(); if (!$this->providerList) { $this->providerList = []; } $this->providerList = array_merge(self::getCoreProviders(), $this->providerList); $this->providerListPostHidded = json_encode($this->providerList); }