Welcome Guest, Not a member yet? Register   Sign In
URL massed up when organize controller.
#1

[eluser]Unknown[/eluser]
when i am going to organize controller in folder and then call this function $this->uri->uri_to_assoc() function name return as parameter.

E,g

http://localhost/Folder/Controller/funct...1/act/add/

when i print it its shows like that
{ ["function"]=> string(1) "cat" ["1"]=> string(1) "act" ["add"]=> bool(false)}

BUT it should be like that
{ ["cat"]=> string(1) "1" ["act"]=> string(1) "add" }
#2

[eluser]WanWizard[/eluser]
Always use the routed variants, as routing rules might have altered the URI.

Removing the folder name from the URI is part of the routing process, which doesn't alter $this->uri->segments (original URI). In this case, use $this->uri->ruri_to_assoc().
#3

[eluser]Unknown[/eluser]
Thanks a lot




Theme © iAndrew 2016 - Forum software by © MyBB