Welcome Guest, Not a member yet? Register   Sign In
Routes and GET Query.
#1

[eluser]pisio[/eluser]
How I can make GET doesn't like this
http://localhost/ci/subtitles/search?subs=sads
and like this
http://localhost/ci/subtitles/search/subs/sads
or
http://localhost/ci/subtitles/search/sads


I try to add in
./system/application/config/routes.php :
$route['subtitles/search/(:any)'] = "/subtitles/search/$1";

But doesn't work.
How I can make it ?
searach_view.php

Code:
<?php
$lang = $this->lang->language;

echo form_open('/subtitles/search/',array('method' => "get"));
echo $lang['search'].form_input(array('type'=>'text', 'name' => 'subs'));

echo form_input(array('type'=> 'submit','value'=>$lang['go']));
echo form_close();

?>


Edit:
I think that can be made with .htaccess mod_rewrite ?????


Messages In This Thread
Routes and GET Query. - by El Forum - 08-16-2010, 02:00 PM
Routes and GET Query. - by El Forum - 08-16-2010, 02:49 PM
Routes and GET Query. - by El Forum - 08-16-2010, 02:52 PM
Routes and GET Query. - by El Forum - 08-16-2010, 02:55 PM
Routes and GET Query. - by El Forum - 08-16-2010, 02:58 PM
Routes and GET Query. - by El Forum - 08-16-2010, 03:12 PM
Routes and GET Query. - by El Forum - 08-16-2010, 03:19 PM
Routes and GET Query. - by El Forum - 08-16-2010, 06:00 PM
Routes and GET Query. - by El Forum - 08-17-2010, 05:36 AM
Routes and GET Query. - by El Forum - 08-17-2010, 06:42 AM
Routes and GET Query. - by El Forum - 08-17-2010, 06:50 AM
Routes and GET Query. - by El Forum - 08-17-2010, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB