Welcome Guest, Not a member yet? Register   Sign In
Add title for item as suffix in url, only for one controller
#1

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
Reply


Messages In This Thread
Add title for item as suffix in url, only for one controller - by kabeza - 03-13-2018, 04:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB