I would like to build the following url for artcles: http://mysite.com/articles/ID. Where the ID is the id of the article, which isn’t constant of course. How can the be done using codeigniter? As I know the second segment should be the method name inside the controller…
I would like to build the following url for artcles: http://mysite.com/articles/ ID . Where
Share
Its simple, Codeigniter have powerful url routing
In your router
And in your controller
Also you need some url forwarding on .htaccess to forward all combinations to index.php