Skip to content

Commit

Permalink
Update url.rst
Browse files Browse the repository at this point in the history
Add more example
  • Loading branch information
MarwanSalim authored Jul 29, 2022
1 parent da71542 commit 2147038
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions en/views/helpers/url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ URL with extension::

// Output
/posts/list.rss
URL with prefix::

echo $this->Url->build([
'controller' => 'Posts',
'action' => 'list',
'prefix' => 'Admin',
]);

// Output
/admin/posts/list

URL (starting with '/') with the full base URL prepended::

Expand Down

0 comments on commit 2147038

Please sign in to comment.