Showing product name instead of product id in the URL. |
Hi guys.
i am new to CodeIgniter. I have a controller named product. and i am passing parameters to product controller index function using routes. $route['mobiles/(:num)'] = 'Product/index/$1'; so it looks like this ( http://localhost/igniter/mobiles/12 ) But my problem is i want to show the name of the product in the url not the id. i want this ( http://localhost/igniter/mobiles/Honor-10) or ( http://localhost/igniter/Honor-10) Any help will be appreciated. Thanks |
Messages In This Thread |
Showing product name instead of product id in the URL. - by mianaliasjad - 07-02-2018, 10:04 PM
RE: Showing product name instead of product id in the URL. - by huangnam - 07-02-2018, 11:56 PM
RE: Showing product name instead of product id in the URL. - by mianaliasjad - 07-03-2018, 12:45 AM
RE: Showing product name instead of product id in the URL. - by Pertti - 07-03-2018, 12:31 AM
RE: Showing product name instead of product id in the URL. - by mianaliasjad - 07-03-2018, 12:40 AM
RE: Showing product name instead of product id in the URL. - by Pertti - 07-04-2018, 12:18 AM
|