Alternate URI syntax |
[eluser]freshface[/eluser]
var_dump shows me bool(false) My CI setup: http://www.freshface.be/orange.zip
[eluser]TheFuzzy0ne[/eluser]
OK, I'm using this test controller: Code: <?php When I go to this URL: http://localhost/aseg_test/test/keyword:test This is the output: Code: string(4) "test" I'm wondering if there's a problem with your uri_protocol or something else along those lines. I'd suggest you try each of the different protocols listed in the config.php file, and see if that helps at all.
[eluser]freshface[/eluser]
Just tested them all, som gave a 404 others gave bool(false)
[eluser]freshface[/eluser]
It works! I loaded a wrong class in autoload and it messed up everything. Dont know why php didn't throw an error, but it works.
[eluser]TheFuzzy0ne[/eluser]
Glad you got it sorted. If this is your development server, I'd suggest that you ensure that at the top of index.php you have error_reporting(E_ALL). That should alert you as to just about every single error and warning encountered. I think it comes set to that by default, but I can't remember.
[eluser]quasiperfect[/eluser]
i tried to use this with ci svn but it doesen't work i tried a var_dump($this->uri->asegment('keyword')); and it returns flase i tried a print_r($this->asegments); inside the function asegment and the array si always empty i tried a print_r($this->asegments); inside the function _reindex_segments() and the array is ok any ideea ?
[eluser]quasiperfect[/eluser]
if global_xss_filtering is activated the lib dosen't work. i wanted to use the lib but i need global_xss_filtering more because i have lot's of forms
[eluser]TheFuzzy0ne[/eluser]
Why not use the post method for your forms? My library only works with the URI, and also, it's only intended to be used in a few controllers; not as a replacement for query strings. If you need this kind of flexibility for all of your controllers, you should consider using query strings.
[eluser]RS71[/eluser]
Interesting solution. Could you possibly implement a way to pass arrays in the URL as well? Something like: /color:red,green,blue/ or /color:red-green-blue/ Thanks mate |
Welcome Guest, Not a member yet? Register Sign In |