Permalink
Browse files

Added # code sample to guide on URLs

  • Loading branch information...
samdark committed Apr 16, 2012
1 parent 9a9fa75 commit c37b8da084fa29021a7f819ae275e9dfd3e11e93
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit c37b8da

Please sign in to comment.