Add title for item as suffix in url, only for one controller |
Hi
I've an application in CI 3.x I have a special controller which I'd like to make more SEF The actual uri is http://www.myapp.com/index.php/item/detail/325 and I'd like to make it http://www.myapp.com/index.php/item/deta...r-whatever And also I'll remove index.php with .htaccess etc. The question would be: Is there any way to override site_url() and add the item's title (stored in db) as url suffix ? I may create a model's function which can get title and then modify the 19 view files where I call item/detail controller/method but it will be a pain in the a** Maybe another idea? Thanks
Enrique
https://beza.com.ar |
Messages In This Thread |
Add title for item as suffix in url, only for one controller - by kabeza - 03-13-2018, 04:24 PM
RE: Add title for item as suffix in url, only for one controller - by salain - 03-14-2018, 12:27 AM
RE: Add title for item as suffix in url, only for one controller - by kabeza - 03-14-2018, 05:33 AM
RE: Add title for item as suffix in url, only for one controller - by salain - 03-14-2018, 06:06 AM
RE: Add title for item as suffix in url, only for one controller - by natanfelles - 03-14-2018, 06:20 PM
|