開発メモ

開発用のメモです。

Cakephp + Bootstrap で Pagination

<?php
    echo $this -> Html -> tag("div", 
                 $this -> Html -> tag("ul", 
                     $this -> Paginator -> numbers(
                         array(
                             "first" => "|<",
                             "last" => ">|",
                             "currentClass" => "active",
                             "currentTag" => "a"
                         )
                     ),
                     array("class" => "pagination pagination-lg")
                 ),
                  array("class" => "text-center")
    );
Twitter: @asahina_alice