CodeIgniter Forums
Administration Page Plugin System - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Administration Page Plugin System (/showthread.php?tid=9461)



Administration Page Plugin System - El Forum - 06-25-2008

[eluser]Unknown[/eluser]
I'm working on a back-end management system for my personal blog that I can re-use for future projects (I've already used the current version of my back-end for 3 different sites). However, I want to make it easier to build new features into this back-end by having each feature group (blog editing, login, reports, etc) as separate modules that I can load.
Each module would include different views, a set of functions that would need to be incorporated into the admin controller, and models. Potentially there would be a block of code that would appear on the index page for the admin controller. So first a few questions:

1. How would I load modules into the admin controller? Would I extend the Admin controller? Build a library that loads each plug-in? Etc.
2. What would be the easiest method of making the module blocks appear in the index page?
3. Where should I store everything?

Thanks in advance


Administration Page Plugin System - El Forum - 06-25-2008

[eluser]Sumon[/eluser]
1. How would I load modules into the admin controller? Would I extend the Admin controller? Build a library that loads each plug-in? Etc.
=> I think you can include your modules using include "your_controller_name"; Moreover, from login information you know which modules you need. As such you can include those using include. Furthermore, you can access included module using ClassName::Function name.

2. What would be the easiest method of making the module blocks appear in the index page?
=> You can use switch control statement and load modules accordingly.

3. Where should I store everything?
=> All information should store in database and all view file / block (according to your design view) should be separated in different folders (like include, menu).

I am not quite sure these informations are helpful for you. I might not able to help you. In this is the case then i am so sorry.