Notice: Undefined variable: pages in /srv/www/thieunien/wap/controllers/TagsController.php on line 88

Fatal error: Uncaught Error: Call to a member function getPage() on null in /srv/www/thieunien/wap/controllers/TagsController.php:88 Stack trace: #0 [internal function]: wap\controllers\TagsController->actionIndex() #1 /srv/www/thieunien/yiiphp7/basic/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #2 /srv/www/thieunien/yiiphp7/basic/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #3 /srv/www/thieunien/yiiphp7/basic/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('index', Array) #4 /srv/www/thieunien/yiiphp7/basic/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('tags/index', Array) #5 /srv/www/thieunien/yiiphp7/basic/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(common\components\HttpRequest)) #6 /srv/www/thieunien/wap/www/index.php(55): yii\base\Application->run() #7 {main} thrown in /srv/www/thieunien/wap/controllers/TagsController.php on line 88