I am stuck with route. Here is my route.
$route['login_register'] = 'welcome/login_register';
First time I don't want to pass any extra segment.
After Login fail,I want to redirect login_register function with failure argument in URL.
If I don't use /(:any),I can't access.
$this->uri->segment(2);
If i use /(:any),it is giving me error when first time redirecting.
$route['login_register/(:any)'] = 'welcome/login_register';