yii\widgets\LinkPager::init PHP Method

init() public method

Initializes the pager.
public init ( )
    public function init()
    {
        if ($this->pagination === null) {
            throw new InvalidConfigException('The "pagination" property must be set.');
        }
    }

Usage Example

Beispiel #1
0
 public function init()
 {
     parent::init();
     
     $this->prevPageLabel = '上一页';
     $this->nextPageLabel = '下一页';
 }
All Usage Examples Of yii\widgets\LinkPager::init