src/controllers/DefaultController.php
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;
        }
        throw new NotFoundHttpException("Code generator not found: $id");
    }
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;
        }
        throw new NotFoundHttpException("Code generator not found: $id");
    }
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 ; } throw new NotFoundHttpException ( "Code generator not found: $id" ) ; }
Loads the generator with the specified ID.
@param string $id the ID of the generator to be loaded.
@return \yii\gii\Generator the loaded generator
@throws NotFoundHttpException
Loads the generator with the specified ID .