[eluser]liri[/eluser]
I'm not sure how else to explain it
Except that, what I'm looking for is a functionality of grouping together modules to form a collection of modules.
But here goes another try: look at the image attached
The "Intro" "About" and "Examples" are the modules and the "Management" and "Reports" are the categories or I don't know how else to call them.
If the user clicks on the "Management" page, there's no genius logic behind it, it should just load say the first module that belongs to the "Management" category.
The "dynamic" here is that upon clicking the "Management" link it should generate the module list (that's easy with iterating through the modules and maybe storing a metadata variable of what is the parent category name).
The other "dynamic" requirement here is that the categories themselves will be iterated upon so that it is possible to add/remove categories. It's also not enough for it to be some hard-coded HTML because upon clicking it's necessary to set the category as active (for css look&feel
.
I've done some early progress with having
MY_Controller
--> Management_Section (extends MY_Controller)
--> Users (extends Management_Section)
where I iterate over the *_Section classes and load them, that's how I also generate the navigation list and store in each class an array of data, whether the category is active and such.
Then I can later in the module access this property and set it to active/disabled etc...
It's not really going as smooth as I want and I'm probably approaching this design issue the wrong way which is why I'd appreciate some advice on this (keep in mind I'm fairly new to CI).
Thanks again.