Web/Controllers/AdminCrudAbstract.php
/**
     * Lists all created items.
     * @return string
     */
Lists all created items.
@return string
Lists all created items . @return string
public function actionIndex() {
        $filterModel = Yii::createObject([
                    'class' => $this->searchClass
        ]);
        $filterModel->scenario = (array_key_exists('search', $filterModel->scenarios()) ? 'search' : 'default');
        return $this->render('index', [
                    'filterModel' => $filterModel,
                    'dataProvider' => $filterModel->search(Yii::$app->request->get()),
        ]);
    }
public function actionIndex ( ) { $ filterModel = Yii :: createObject ( [ 'class' => $ this -> searchClass ] ) ; $ filterModel -> scenario = ( array_key_exists ( 'search' , $ filterModel -> scenarios ( ) ) ? 'search' : 'default' ) ; return $ this -> render ( 'index' , [ 'filterModel' => $ filterModel , 'dataProvider' => $ filterModel -> search ( Yii :: $ app -> request -> get ( ) ) , ] ) ; }
Lists all created items.
Lists all created items .