php - Routing with modules with codeigniter -
i'm working hmvc wiredesignz plugin , have following url mysite.com/login
, views login form. have form post submit method in login controller inside of user module. i'm trying figure out route work because inside of submit method have echoing string testing purposes. first route works beautifully second route presents 404 page not found. thoughts on how correct this.
$route['login'] = 'user/login'; $route['login/submit'] = 'user/login/submit';
try 1
$route['login/(:any)'] = 'user/login/$1'; $route['login'] = 'user/login';
or try change action of form submit
$route['submit'] = 'user/login/submit'; $route['login'] = 'user/login';
Comments
Post a Comment