Welcome Guest, Not a member yet? Register   Sign In
Help w/ URI Routing - Skip class & function calls
#5

[eluser]Benito[/eluser]
If I understand correctly, you want to reroute
Code:
example.com/index.php/page/fetch_page_by_reference/reference
to
example.com/reference
and pass the referance?

I don't really understand why you would want to do it this way, because this means that anything passed after yoursite.com/$variable will be run through this controller.

In config/routes.php set:
Code:
$route['(:any)'] = "page/fetch_page_by_reference/";

On the other hand, I would rather do something like:
Code:
$route['page/(:any)'] = "page/fetch_page_by_reference/$1";
Cheers.


Messages In This Thread
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 04:02 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 04:50 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 05:42 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 07:06 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 08:22 AM
Help w/ URI Routing - Skip class & function calls - by El Forum - 07-25-2011, 09:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB