时间:2011-01-06 19:15:10

标签: codeigniter codeigniter-url

1 个答案:

答案 0 :(得分:1)

$route['engineering-resources/login'] = "resources/login";

这不会路由到engineering-resources/login/validate_credentialsresources/login/validate_credentials

你应该有这样的东西:

// not tested
$route['engineering-resources/login/(\S*)'] = "resources/login/$1";

还有一件事是,如果你正在使用路线,你也应该使用你的观点中的路线..

echo form_open('engineering-resources/login/validate_credentials');