backend/controllers/KerusakanController.php
/**
     * Lists all Kerusakan models.
     * @return mixed
     */
Lists all Kerusakan models.
@return mixed
Lists all Kerusakan models . @return mixed
public function actionIndex()
{
        $model= (new \yii\db\Query());
        $model  
        ->select(['kerusakan.*']) 
        ->from('kerusakan');
        $command = $model->createCommand();
        $data = $command->queryAll();
        return $this->render('index', [
            'data'=>$data,
        ]);
    }
public function actionIndex ( ) { $ model = ( new \ yii \ db \ Query ( ) ) ; $ model -> select ( [ 'kerusakan.*' ] ) -> from ( 'kerusakan' ) ; $ command = $ model -> createCommand ( ) ; $ data = $ command -> queryAll ( ) ; return $ this -> render ( 'index' , [ 'data' => $ data , ] ) ; }
Lists all Kerusakan models.
Lists all Kerusakan models .
// 'dataProvider' => $dataProvider, // 'model2'=>$model2, // 'sum'=>$sum,