Place several elements in the router |
Hi eveybody
It's my first post on the forum and it's why i well present myself. Firstly, I'm French, so please excuse my grammar and my language mystakes . I'm coming from the South of France and I want to use CodeIgniter for a big project. Actually it's a secret project for french people. I ha a little question about the routing in codeigniter. I am creating a forum and i want to pass all my parameters in the URL just like that : http://base.com/forum/category-name/foru...topic-name And I would for :
And I would to do it automatically with the router. But this code doesn't run : PHP Code: $route['forum'] = 'forum/index'; with theses functions in the Forum Controller : PHP Code: /** I don't know if my method is right or if I have an error with my code but I would learn the best practice to do that Thank you very much
11-29-2014, 01:23 PM
(This post was last modified: 11-29-2014, 01:25 PM by includebeer. Edit Reason: Added url for doc )
Would be simpler with a url like /forum/cat/category-name/forum-name/topic-name
function cat ($category = "all", $forum = "all", $topic = "all") http://www.codeigniter.com/user_guide/ge...passinguri |
Welcome Guest, Not a member yet? Register Sign In |