Codeigniter URL Pattern using htaccess / route / model |
Yes, you can have an URL like that. How is up to you.
An option is to use the _remap method Add this to your controller PHP Code: public function _remap($method) { What this does is override the default behavior of how CI calls methods. When this method is available within the called controller this is the first method called. From here you can route to any other method within the called controller. If you want controllers calling controllers how should look into HMVC But if you are new to MVC and CI I would advise getting to know the basics first. Hope this helps you on your way |
Messages In This Thread |
Codeigniter URL Pattern using htaccess / route / model - by Codeigniter_Learner - 12-13-2015, 08:25 PM
RE: Codeigniter URL Pattern using htaccess / route / model - by Martin7483 - 12-14-2015, 04:11 AM
|