-4
我有以下鏈接:如何路由codeigniter中的鏈接?
www.example.com/index.php/comanda_plasata/send_email/0347046098
,我希望它出現www.example.com/index.php/send_email
。
我該如何去做到這一點?
我有以下鏈接:如何路由codeigniter中的鏈接?
www.example.com/index.php/comanda_plasata/send_email/0347046098
,我希望它出現www.example.com/index.php/send_email
。
我該如何去做到這一點?
$route['send_mail/(:any)'] = "comanda_plasata/send_email/$1";
,或者如果你喜歡只允許整數
$route['send_mail/(:num)'] = "comanda_plasata/send_email/$1";
,但請仔細閱讀在F ..對不起CI doc
那麼有什麼路由的配置你試過至今未工作您? – 2013-04-09 20:32:07
$ route ['send_mail'] =「comanda_plasata/send_email/$ 1」; – 2013-04-09 20:35:58
0347046098是可變的 – 2013-04-09 20:51:25