Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Maybe you had a LinkPager widget?
You can globally change the default settings via DI
Create a base class controllers/base/BaseController.php
namespace app\controllers\base;
use Yii;
class BaseController extends \yii\web\Controller
{
/**
* @param string $id
* @param \yii\base\Module $module
* @param array $config
*/
public function __construct($id, $module, $config = [])
{
// DI
Yii::$container->set('yii\widgets\LinkPager', ['maxButtonCount' => 5]);
return parent::__construct($id,$module,$config);
}
}
namespace app\controllers;
use Yii;
class SiteController extends base\BaseController
{
//...
}
public function init() {
Yii::$container->set('yii\widgets\LinkPager', ['maxButtonCount' => 5]);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question