Rewrite url, I can't get id by segment on this url ??? |
[eluser]memVN[/eluser]
Hello, I have a problem. my url is http://localhost/ci/category/45 Now I use routes to order rewrite this url follow: http://localhost/ci/category-45 With new url http://localhost/ci/category-45 . I can't get id of category . Who can help me???
[eluser]Php Coder[/eluser]
use function explode Code: $explode=explode('-',category-45); category-45 ======= mean your $this->uri->segment(1);
|
Welcome Guest, Not a member yet? Register Sign In |