URL massed up when organize controller. |
[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" }
[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().
|
Welcome Guest, Not a member yet? Register Sign In |