Welcome Guest, Not a member yet? Register   Sign In
Modular portal based on controller names?
#5

[eluser]DanielJay[/eluser]
[quote author="eggshape" date="1200391801"]One solution is dynamically get any controller's methods with get_class_methods(), which will return the class's functions in an array.

Do you have any other ideas/implementation?[/quote]

I just thought of a possible way to handle what I am looking for. Create one "configuration" page that reads the directory of your controllers. Using the get_class_methods() function it would check if there is an activate() and deactivate() function. Inside these two functions you would store SQL queries that would insert or remove the sub navigation links and anything else related to this controller.

This would possibly be along the lines of the Wordpress Blog plugins, which can be activated and deactivated whenever needed.

How does this sound?

Craig Rodway - That is exactly how I was thinking about storing the navigation in a database.


Messages In This Thread
Modular portal based on controller names? - by El Forum - 01-14-2008, 08:26 PM
Modular portal based on controller names? - by El Forum - 01-14-2008, 10:10 PM
Modular portal based on controller names? - by El Forum - 01-15-2008, 03:25 AM
Modular portal based on controller names? - by El Forum - 01-15-2008, 03:41 AM
Modular portal based on controller names? - by El Forum - 01-15-2008, 07:47 AM
Modular portal based on controller names? - by El Forum - 01-15-2008, 10:46 AM
Modular portal based on controller names? - by El Forum - 01-15-2008, 11:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB