php - How to have alias name for controllers in codeignitor -
I have to say the controller, products and of course (www.xyz.com/index.php/products) But I want to enter the redirect with the same controller (www.xyz.com/index.php/pro). I know that we can only make a controller supporter and can redirect it to the product controller in the index function. But I think that the second controller is more straightforward than without making a pro. it's possible?
This can be done using routing.
$ route ['pro'] = 'product';
Comments
Post a Comment