2013-04-09 69 views
-4

我有以下链接:如何路由codeigniter中的链接?

www.example.com/index.php/comanda_plasata/send_email/0347046098

,我希望它出现www.example.com/index.php/send_email

我该如何去做到这一点?

+2

那么有什么路由的配置你试过至今未工作您? – 2013-04-09 20:32:07

+0

$ route ['send_mail'] =“comanda_plasata/send_email/$ 1”; – 2013-04-09 20:35:58

+0

0347046098是可变的 – 2013-04-09 20:51:25

回答

2
$route['send_mail/(:any)'] = "comanda_plasata/send_email/$1"; 

,或者如果你喜欢只允许整数

$route['send_mail/(:num)'] = "comanda_plasata/send_email/$1"; 

,但请仔细阅读在F ..对不起CI doc