Welcome Guest, Not a member yet? Register   Sign In
Routing - combing URL segments to form a method name?
#1

[eluser]Prophet[/eluser]
Hello all Smile

Is something like the following possible with CI's routing library?
Code:
$route['admin/product_required_details/(:any)/(:num)/(:any)'] = 'admin/product_required_details/$3_$1/$2';

For example, I would like:
Quote:admin/product_required_details/option/5/edit
...to route to:
Quote:admin/product_required_details/edit_option/5
(i.e. it should call the edit_option() method and pass 5 as the parameter.

Thanks in advance for any advice.


Messages In This Thread
Routing - combing URL segments to form a method name? - by El Forum - 07-20-2010, 04:47 PM
Routing - combing URL segments to form a method name? - by El Forum - 07-20-2010, 07:14 PM
Routing - combing URL segments to form a method name? - by El Forum - 07-21-2010, 01:41 AM
Routing - combing URL segments to form a method name? - by El Forum - 07-21-2010, 02:54 AM
Routing - combing URL segments to form a method name? - by El Forum - 07-21-2010, 06:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB