BcBaserHelper::pagination PHP Method

pagination() public method

ページネーションを出力する
public pagination ( string $name = 'default', array $data = [], array $options = [] ) : void
$name string
$data array ページネーションで参照するデータ
$options array オプションのパラメータ `subDir` (boolean) エレメントのパスについてプレフィックスによるサブディレクトリを追加するかどうか ※ その他のパラメータについては、View::element() を参照
return void
    public function pagination($name = 'default', $data = array(), $options = array())
    {
        $options = array_merge(array('subDir' => true), $options);
        if (!$name) {
            $name = 'default';
        }
        $file = 'paginations' . DS . $name;
        echo $this->getElement($file, $data, $options);
    }