2010-09-13 28 views

回答

7

您需要爲application/config/routes.php中的控制器設置自定義路由,例如,

$route['user/(:any)'] = "user/user_controller_method/$1"; 
4

你應該使用

$route['user/(:any)'] = "user/user_controller_method/$1"; 

詹姆斯建議,然後定義用戶控制器上的funcion:

function user_controller_method($username) { 
    // ... $username should be the url param 
}