$this->uri->segment() returns FALSE [SOLVED] |
[eluser]Unknown[/eluser]
*************SOLVED***************** changed uri_protocol in config file to REQUEST_URI as discussed in this thread: http://ellislab.com/forums/viewthread/111651/ ****************SOLVED*************** I hope someone can help! I am at my wits end. I developed an application on my local machine and there were no issues with routing at all. I have uploaded to a live site and now I am not getting any information from the URI class at all. My entire app depends on the class!! I have used a single controller for everything by routing: Code: $route['default_controller'] = "hub"; Within the "Hub" controller I have used the _remap() function to route everything: Code: function _remap($method) I have recently put the $method variable into the remap function brackets and when echoed, $method returns index rather than what is actually in the uri string. (index has been removed via mod_rewrite) Every call to $this->uri->segment(#) returns FALSE. Any ideas about what I have done wrong?? This is supposed to go live tomorrow morning! Thanks everyone, Sheri
[eluser]derekmichaeljohnson[/eluser]
Well, I'm having a similar issue, however, I was already using REQUEST_URI and $this->uri->segment(any number) returns NOTHING. Works fine on our local server with uri_protocol set to AUTO, but when uploading the site to Host Gator we have to change the protocol to REQUEST_URI or the site won't work. Any help?
|
Welcome Guest, Not a member yet? Register Sign In |