Welcome Guest, Not a member yet? Register   Sign In
Routing problem
#1

(This post was last modified: 09-05-2017, 11:39 AM by oizo.)

Hi,

I have this following routing rules :


PHP Code:
$route['my-custom-url'] = 'lead/index/1';
$route['my-another-custom-url'] = 'lead/index/2';
$route['my-again-another-custom-url'] = 'lead/index/3';

$route['my-custom-url/(:any)'] = 'lead/$1/1';
$route['my-another-custom-url/(:any)'] = 'lead/$1/2';
$route['my-again-another-custom-url/(:any)'] = 'lead/$1/3'

I have a controller "LeadController" with index method. It display a form that is different depending on the parameter "type" (1, 2, or 3).

The form action url is /lead/post/TYPE.

After the post action, i would like to redirect to a result page with followin url : /my-custom-url/result (where "my-custom-url" is the input url in the LeadController).

Can you tell me if it's possible or if, on the contrary, it's an conception error ?

Thanks.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB