tengawaakito 发表于 2009-10-16 16:04:32

怎样把get的值添加到方法的参数中?

我在routes.php定义一个
$route['welcome/index\?+=(.+)'] = "welcome/index/$1";
即http://localhost/www/codeigniter/index.php/welcome/index?keyword=bl
路由到http://localhost/www/codeigniter/index.php/welcome/show/bl
把bl参数传递到show方法
,但怎样都调用index方法...

visvoy 发表于 2009-10-16 17:49:54

$route['welcome/index\?+=(.+)'] = "welcome/show/$1";

Hex 发表于 2009-10-17 10:36:19

路由还支持 query string????

zhangtao-5 发表于 2009-10-20 11:50:24

恩,看看。
页: [1]
查看完整版本: 怎样把get的值添加到方法的参数中?