Best way to do this? |
[eluser]Curtis.[/eluser]
Hi everybody, I've just started using codeigniter, and everything has been good so far, but now I'm stuck on this. I'm writing a simple search function, and I want the url's to look like this http://localhost/index.php/controller/se...arch+Terms So that they're easy to read and people can bookmark the search results. Right now I have it partially working using 3 function Code: function index() And it works okay, the problem is that as soon as I add spaces to the search I get this: Quote:An Error Was Encountered I was wondering what the best solution is? So far the only thing I have thought of would be to set $config['permitted_uri_chars'] to nothing, but the config file has a warning: Quote:Leave blank to allow all characters -- but only if you are insaneI was wondering, what would be the problem with that? |
Messages In This Thread |
Best way to do this? - by El Forum - 11-02-2010, 05:38 PM
Best way to do this? - by El Forum - 11-02-2010, 06:15 PM
Best way to do this? - by El Forum - 11-02-2010, 06:54 PM
Best way to do this? - by El Forum - 11-02-2010, 07:29 PM
Best way to do this? - by El Forum - 11-02-2010, 10:07 PM
Best way to do this? - by El Forum - 11-03-2010, 02:45 AM
Best way to do this? - by El Forum - 11-03-2010, 04:42 AM
Best way to do this? - by El Forum - 11-03-2010, 02:36 PM
Best way to do this? - by El Forum - 11-03-2010, 04:43 PM
Best way to do this? - by El Forum - 11-03-2010, 08:31 PM
|