controllers/MateriaController.php
/**
    * Action to load a tabular form grid
    * for Programas
    * @author Yohanes Candrajaya <moo.tensai@gmail.com>
    * @author Jiwantoro Ndaru <jiwanndaru@gmail.com>
    *
    * @return mixed
    */
Action to load a tabular form grid
for Programas
@author Yohanes Candrajaya 
@author Jiwantoro Ndaru 

@return mixed
Action to load a tabular form grid for Programas @author Yohanes Candrajaya @author Jiwantoro Ndaru @return mixed
public function actionAddProgramas()
    {
        if (Yii::$app->request->isAjax) {
            $row = Yii::$app->request->post('Programas');
            if (!empty($row)) {
                $row = array_values($row);
            }
            if((Yii::$app->request->post('isNewRecord') && Yii::$app->request->post('_action') == 'load' && empty($row)) || Yii::$app->request->post('_action') == 'add')
                $row[] = [];
            return $this->renderAjax('_formProgramas', ['row' => $row]);
        } else {
            throw new NotFoundHttpException('The requested page does not exist.');
        }
    }
public function actionAddProgramas ( ) { if ( Yii :: $ app -> request -> isAjax ) { $ row = Yii :: $ app -> request -> post ( 'Programas' ) ; if ( ! empty ( $ row ) ) { $ row = array_values ( $ row ) ; } if ( ( Yii :: $ app -> request -> post ( 'isNewRecord' ) && Yii :: $ app -> request -> post ( '_action' ) == 'load' && empty ( $ row ) ) || Yii :: $ app -> request -> post ( '_action' ) == 'add' ) $ row [ ] = [ ] ; return $ this -> renderAjax ( '_formProgramas' , [ 'row' => $ row ] ) ; } else { throw new NotFoundHttpException ( 'The requested page does not exist.' ) ; } }
Action to load a tabular form grid
 for Programas
 @author Yohanes Candrajaya <moo.tensai@gmail.com>
 @author Jiwantoro Ndaru <jiwanndaru@gmail.com>
Action to load a tabular form grid for Programas @author Yohanes Candrajaya <moo . tensai@gmail . com > @author Jiwantoro Ndaru <jiwanndaru@gmail . com >