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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -