parameters in url without controller and action route |
I have recently started working on codeigniter 3 and new to codeigniter.
I am familiar with PHP framework and MVC and have already builded many applications in CakePHP framework. I have started working on a project in Codeigniter whereI want url containing username like Code: website.com/username which will map to 'Profile' controller and 'view' action with username as parameter Is it possible? If yes, how?
CI supports uri routing, which is explained here: http://www.codeigniter.com/userguide3/ge...uting.html
In your case, you will need a piece of code that generates the routes dynamically, since you won't have a fixed number of user profiles. Maybe this will help: http://stackoverflow.com/questions/17042...gniter-2-x |
Welcome Guest, Not a member yet? Register Sign In |