03-27-2010, 05:37 AM
[eluser]haxxorized[/eluser]
Hey, I have a little problem...
Say, if I wanted to go to a link: for example:
www.example.com/link
that would trigger the index function of the 'link' controller,
but say if I wanted to trigger a different function with this link, let's say 'function2'
then I could go to the config file and add to the routes array:
$routes['link'] = 'link/function2';
So that's all OK,
but now I want some parameters to add to that function, and the parameters come from the link...
how do I do that?
Hey, I have a little problem...
Say, if I wanted to go to a link: for example:
www.example.com/link
that would trigger the index function of the 'link' controller,
but say if I wanted to trigger a different function with this link, let's say 'function2'
then I could go to the config file and add to the routes array:
$routes['link'] = 'link/function2';
So that's all OK,
but now I want some parameters to add to that function, and the parameters come from the link...
how do I do that?