Dynamic Routing |
[eluser]Sanjib Kumar Jena[/eluser]
Hi, I have developed a site using Code Ignitor. I have a URL like this http://www.mysite.com/products/index/105 But I want to display the URL like this http://www.mysite.com/product/laptop If write the following line in applications/config/route.php it will work $route[“products/laptop”] = “product/laptop”; Here 105 is the id for laptop What is problem is… My table is consists of thousands of records i can’t write for all records statically in route.php In order to make all records to display the product title in the url instead of product id what i have to do? Please help me if you have any solution Thanks in advance
|
Welcome Guest, Not a member yet? Register Sign In |