前回はController側の記述をしたので、今回はview側index.ctpファイルを見ていく。 counter bakeしたファイルindex.ctpを眺めていくと最初に出てくるのはcounterメソッド。 初期状態の表示方法 echo $paginator->counter(array( 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true) )); 日本語に直した場合はこんな感じ。 echo $paginator->counter(array( 'format' => __('現%page%ページ/全%pages%ページ、%current%件/全%count%
Just a basic introduction to the wonderful abilities of pagination in Cake 1.2. Gives an overview of how to use pagination to do some very complex things with very little code. Pagination in Cake 1.2 is very simple to set up and use. There is not much to it. I'll just walk you through step by step getting a basic table with pagination going. From there its on you to explore the more advanced optio
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く