<?php
/**
 * Created by PhpStorm.
 * User: alex
 * Date: 20/10/2016
 * Time: 15:57
 */

namespace vr\api\doc\widgets;

use yii\bootstrap\Widget;
use yii\data\ArrayDataProvider;
use yii\widgets\ListView;

/**
 * Class ControllersListView
 * @package vr\api\doc\widgets
 */
class ControllersListView extends Widget
{
    /**
     * @var null
     */
    public $models = null;

    /**
     * @return string
     * @throws \Exception
     */
    public function run()
    {
        return ListView::widget([
            'dataProvider' => new ArrayDataProvider([
                'allModels'  => $this->models,
                'pagination' => false,
            ]),
            'layout'       => '{items}',
            'itemView'     => '@api/doc/widgets/views/controller-list-item-view',
        ]);
    }
}
<?php
/**
 * Created by PhpStorm.
 * User: alex
 * Date: 20/10/2016
 * Time: 15:57
 */

namespace vr\api\doc\widgets;

use yii\bootstrap\Widget;
use yii\data\ArrayDataProvider;
use yii\widgets\ListView;

/**
 * Class ControllersListView
 * @package vr\api\doc\widgets
 */
class ControllersListView extends Widget
{
    /**
     * @var null
     */
    public $models = null;

    /**
     * @return string
     * @throws \Exception
     */
    public function run()
    {
        return ListView::widget([
            'dataProvider' => new ArrayDataProvider([
                'allModels' => $this->models,
            ]),
            'layout'       => '{items}',
            'itemView'     => '@api/doc/widgets/views/controller-list-item-view',
        ]);
    }
}
--- 
+++ 
@@ -31,7 +31,8 @@
     {
         return ListView::widget([
             'dataProvider' => new ArrayDataProvider([
-                'allModels' => $this->models,
+                'allModels'  => $this->models,
+                'pagination' => false,
             ]),
             'layout'       => '{items}',
             'itemView'     => '@api/doc/widgets/views/controller-list-item-view',
Remove pagination from controllers data provider to show more than 20 controllers
