Welcome Guest, Not a member yet? Register   Sign In
Hmm.. odd question about /class/function
#1

[eluser]SlasherX[/eluser]
Ok, I need a hand here from someone a bit more able with the internals of CI then I am.

The issue is a site I am working on has categories stored in a table. Getting those categories to show up in the navigation is easy, but I would like to link to the categories like this:

http://www.examples.com/category/video

Now normally just tossing a video function into the controller would handle the issue, but because the categories could be ANYTHING and are dynamic..

Any one have an idea of a simple way to make a call to the category controller always call ONE function so that I can pull out the segment 2 and use that?

TIA
#2

[eluser]gunter[/eluser]
what you need is described exactly here:

routing class
#3

[eluser]SlasherX[/eluser]
Have spent many hours in the documentation looking at different functions and somehow I missed that one. Thank you Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB