File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ Il est aussi possible de trier une colonne basée sur des associations:
539539 <?php foreach ($recipes as $recipe): ?>
540540 <tr >
541541 <td ><?= h($recipe->title) ?> </td >
542- <td ><?= h($recipe->name) ?> </td >
542+ <td ><?= h($recipe->author-> name) ?> </td >
543543 </tr >
544544 <?php endforeach; ?>
545545 </table >
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ PaginatorHelperのすべてのオプションを設定します。サポート
493493 <?php foreach ($recipes as $recipe): ?>
494494 <tr >
495495 <td ><?= h($recipe->title) ?> </td >
496- <td ><?= h($recipe->name) ?> </td >
496+ <td ><?= h($recipe->author-> name) ?> </td >
497497 </tr >
498498 <?php endforeach; ?>
499499 </table >
@@ -503,16 +503,16 @@ PaginatorHelperのすべてのオプションを設定します。サポート
503503 関連するモデルでカラムをソートするには、 ``PaginationComponent::paginate ``
504504 プロパティーで設定する必要があります。上記の例を使用すると、
505505 ページ制御を処理するコントローラーは、次のように ``sortWhitelist `` キーを設定する必要があります。
506-
506+
507507 .. code-block :: php
508-
508+
509509 $this->paginate = [
510510 'sortWhitelist' => [
511511 'Posts.title',
512512 'Authors.name',
513513 ],
514514 ];
515-
515+
516516 ``sortWhitelist `` オプションの使い方の詳細については、
517517 :ref: `control-which-fields-used-for-ordering ` をご覧ください。
518518
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ The generated form and control will automatically submit on change.
495495 <?php foreach ($recipes as $recipe): ?>
496496 <tr >
497497 <td ><?= h($recipe->title) ?> </td >
498- <td ><?= h($recipe->name) ?> </td >
498+ <td ><?= h($recipe->author-> name) ?> </td >
499499 </tr >
500500 <?php endforeach; ?>
501501 </table >
Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ It is also possible to sort a column based on associations:
508508 <?php foreach ($recipes as $recipe): ?>
509509 <tr >
510510 <td ><?= h($recipe->title) ?> </td >
511- <td ><?= h($recipe->name) ?> </td >
511+ <td ><?= h($recipe->author-> name) ?> </td >
512512 </tr >
513513 <?php endforeach; ?>
514514 </table >
You can’t perform that action at this time.
0 commit comments