public function actionIndex()
    {
        $query = ArticleCategory::find()->orderBy(['sort' => SORT_ASC]);
        $dataProvider = new ActiveDataProvider([
            'query' => $query,
            'pagination' => false
        ]);
        return $this->render('index', [
            'dataProvider' => $dataProvider,
        ]);
    }
public function actionIndex()
    {
        $query = ArticleCategory::find()->orderBy(['sort' => SORT_ASC]);
        $dataProvider = new ActiveDataProvider([
            'query' => $query,
            'pagination' => false
        ]);
        return $this->render('index', [
            'dataProvider' => $dataProvider,
        ]);
    }
public function actionIndex ( ) { $ query = ArticleCategory :: find ( ) -> orderBy ( [ 'sort' => SORT_ASC ] ) ; $ dataProvider = new ActiveDataProvider ( [ 'query' => $ query , 'pagination' => false ] ) ; return $ this -> render ( 'index' , [ 'dataProvider' => $ dataProvider , ] ) ; }
Lists all Category models.
@return mixed
Lists all Category models .