Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added # code sample to guide on URLs

  • Loading branch information...
commit c37b8da084fa29021a7f819ae275e9dfd3e11e93 1 parent 9a9fa75
@samdark samdark authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  docs/guide/topics.url.txt
3  docs/guide/topics.url.txt
@@ -43,7 +43,8 @@ the request [route](/doc/guide/basics.controller#route). This URL format
is not very user-friendly because it requires several non-word characters.
> Tip: In order to generate URL with a hashtag, for example
- `/index.php?r=post/read&id=100#title`, you need to specify parameter named `#`.
+ `/index.php?r=post/read&id=100#title`, you need to specify parameter named `#`
+ using `$this->createUrl('post/read',array('id'=>100,'#'=>'title'))`.
We could make the above URL look cleaner and more self-explanatory by
using the so-called `path` format which eliminates the query string and
Please sign in to comment.
Something went wrong with that request. Please try again.