modules/medqueue/controllers/DefaultController.php
/**
     * Renders the index view for the module
     * @return string
     */
Renders the index view for the module
@return string
Renders the index view for the module @return string
public function actionIndex()
    {
        $model = new Medqueue();
        if($model->load(Yii::$app->request->post()) && $model->save())
            $this->redirect(Yii::$app->request->url);
        return $this->render('insert', ['model' => $model]);
    }
public function actionIndex ( ) { $ model = new Medqueue ( ) ; if ( $ model -> load ( Yii :: $ app -> request -> post ( ) ) && $ model -> save ( ) ) $ this -> redirect ( Yii :: $ app -> request -> url ) ; return $ this -> render ( 'insert' , [ 'model' => $ model ] ) ; }
Renders the index view for the module
 @return string
Renders the index view for the module @return string