Welcome Guest, Not a member yet? Register   Sign In
Deep level argumenting
#1

[eluser]RobertR[/eluser]
I think, this probably is novice question, but I am novice in CodeIgniter Smile

Well here is the problem, I'm trying to make categories and subcategories (dynamically generated) for store, and the main problem is that, I could manage to set different options to main category with _remap function in my controller. But, if I am trying to get deeper, then the same _remap function applies, and I am stuck there.

For example, the main category uri is http://project.com/store/fruits/, but for the subcategory, of course - http://project.com/store/fruits/apples.

I want to apply different view to 3rd segment, and still be able to control main category (fruits) with _remap function.

I want to use one controller over and over, but I think, it must be crazy to copy and paste the same function content for all subcategories (hundreds of them, disguised).

Maybe there is some way to do that, but I can't find out how... Help here! Smile

/Rob


Messages In This Thread
Deep level argumenting - by El Forum - 08-11-2012, 12:44 PM
Deep level argumenting - by El Forum - 08-11-2012, 01:02 PM
Deep level argumenting - by El Forum - 08-11-2012, 01:06 PM
Deep level argumenting - by El Forum - 08-11-2012, 04:42 PM
Deep level argumenting - by El Forum - 08-12-2012, 10:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB