Home > CakePHP 初心者メモ > Paginationの代替え表示(CakePHP)

Paginationの代替え表示(CakePHP)

 非常に基本的な部分だと思うのですが。。。。
 CakePHPのbakeでPaginationのviewが作成できますが、その場合、以下のようにth行が出力されます。

<tr>
<th><?php echo $paginator->sort('id');?></th>
<th><?php echo $paginator->sort('name');?></th>
<th class="actions"><?php __('Actions');?></th>
</tr>

 この場合、最初の行(THの行)が、「Id | Name | Action」という表記になります。

 これを変更する場合、以下のようにするとのこと。
 
 

<tr>
<th><?php echo $paginator->sort('ID','id');?></th>
<th><?php echo $paginator->sort('名前','name');?></th>
<th class="actions"><?php __('Actions');?></th>
</tr>

の青文字部分で代替え表示ができます。

 

 

Comments:0

Comment Form

Trackbacks:0

TrackBack URL for this entry
http://www.multiburst.net/cgi-bin/mt-cgi/mt-tb.cgi/12067
Listed below are links to weblogs that reference
Paginationの代替え表示(CakePHP) from ElectronicBrain is eating BreakFast

Home > CakePHP 初心者メモ > Paginationの代替え表示(CakePHP)

Sponsored Link
楽天AD
Recent Trackbacks
Amazon
OpenID accepted here

Accepted OpenID

Links

Return to page top