Esempio n. 1
0
 /**
  * Loads the generator with the specified ID.
  * @param string $id the ID of the generator to be loaded.
  * @return \richkay\geesgii\Generator the loaded generator
  * @throws NotFoundHttpException
  */
 protected function loadGenerator($id)
 {
     if (isset($this->module->generators[$id])) {
         $this->generator = $this->module->generators[$id];
         $this->generator->loadStickyAttributes();
         $this->generator->load(Yii::$app->request->post());
         return $this->generator;
     } else {
         throw new NotFoundHttpException("Code generator not found: {$id}");
     }
 }