Skip to content

Commit

Permalink
Made getDataProvider()
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Jan 13, 2017
1 parent a5b302f commit 9d7804f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/PagesIndex.php
Expand Up @@ -3,6 +3,7 @@
namespace hiqdev\yii2\modules\pages\models;

use Yii;
use yii\data\ArrayDataProvider;

class PagesIndex
{
Expand All @@ -25,5 +26,6 @@ public static function createFromDir($path)

public function getDataProvider()
{
return new ArrayDataProvider(['allModels' => $this->pages]);
}
}

0 comments on commit 9d7804f

Please sign in to comment.