Welcome Guest, Not a member yet? Register   Sign In
Ajax doesn't work after using _remap
#3

(This post was last modified: 02-05-2021, 12:36 AM by brianjamestorr.)

If I doesn't use _remap then I need to make url like this mywebsite.com/history/index/12 because it is saying that "page is not found", is there a way to remove that "index" from url somehow ?

Also with those you suggested I am getting errors when page is loaded
Message: Undefined property: History::$request
Message: Trying to get property 'uri' of non-object
Message: Call to undefined method CI_URI::getSegments()

EDIT
I removed _remap and made route like this $route['history/(:any)'] = 'history/index/$1'; this fixed all.
Reply


Messages In This Thread
RE: Ajax doesn't work after using _remap - by brianjamestorr - 02-05-2021, 12:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB