Skip to content

Commit

Permalink
Merge pull request #7868 from cakephp/upd
Browse files Browse the repository at this point in the history
Update paginator.rst (fr, ja, ru, tl)
  • Loading branch information
othercorey authored Jun 13, 2024
2 parents 835fb47 + 9da1cf7 commit ce605e1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fr/views/helpers/paginator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ Il est aussi possible de trier une colonne basée sur des associations:
<?php foreach ($recipes as $recipe): ?>
<tr>
<td><?= h($recipe->title) ?> </td>
<td><?= h($recipe->name) ?> </td>
<td><?= h($recipe->author->name) ?> </td>
</tr>
<?php endforeach; ?>
</table>
Expand Down
8 changes: 4 additions & 4 deletions ja/views/helpers/paginator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ PaginatorHelperのすべてのオプションを設定します。サポート
<?php foreach ($recipes as $recipe): ?>
<tr>
<td><?= h($recipe->title) ?> </td>
<td><?= h($recipe->name) ?> </td>
<td><?= h($recipe->author->name) ?> </td>
</tr>
<?php endforeach; ?>
</table>
Expand All @@ -503,16 +503,16 @@ PaginatorHelperのすべてのオプションを設定します。サポート
関連するモデルでカラムをソートするには、 ``PaginationComponent::paginate``
プロパティーで設定する必要があります。上記の例を使用すると、
ページ制御を処理するコントローラーは、次のように ``sortWhitelist`` キーを設定する必要があります。

.. code-block:: php
$this->paginate = [
'sortWhitelist' => [
'Posts.title',
'Authors.name',
],
];
``sortWhitelist`` オプションの使い方の詳細については、
:ref:`control-which-fields-used-for-ordering` をご覧ください。

Expand Down
2 changes: 1 addition & 1 deletion ru/views/helpers/paginator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ The generated form and control will automatically submit on change.
<?php foreach ($recipes as $recipe): ?>
<tr>
<td><?= h($recipe->title) ?> </td>
<td><?= h($recipe->name) ?> </td>
<td><?= h($recipe->author->name) ?> </td>
</tr>
<?php endforeach; ?>
</table>
Expand Down
2 changes: 1 addition & 1 deletion tl/views/helpers/paginator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ It is also possible to sort a column based on associations:
<?php foreach ($recipes as $recipe): ?>
<tr>
<td><?= h($recipe->title) ?> </td>
<td><?= h($recipe->name) ?> </td>
<td><?= h($recipe->author->name) ?> </td>
</tr>
<?php endforeach; ?>
</table>
Expand Down

0 comments on commit ce605e1

Please sign in to comment.