I have a controller Pages, am using this controller to load the product details and division details.
When am loading a division the URL loaded in the browser in the below manner
URL: www.example.com/pages/division_details/$1
but i need the URL to be loaded in the browser is
URL: www.example.com/$1
the controller and method name(pages/division_details) must be replaced and the $1 value i,e. the value which is obtained from the database will be loaded
same as in the case of product details
URL: www.example.com/pages/product_details/$1
URL: www.example.com/$1
the controller and method name(pages/product_details) must be replaced and the $1 value i,e. the value which is obtained from the database will be loaded
How should I place routing method so that i should not see the controller and method name in the URL ?
routefor two action inCI. it can be define two route for your problem. - NikuNj Rathod