Welcome Guest, Not a member yet? Register   Sign In
Should I make a library, module or singleton class...
#8

[eluser]esra[/eluser]
Another alternative is the Khaos Event Manager library. I have not tried this myself, but it is supposed to be similar to the plugin system used in Joomla which works really nice. Correct me if I'm wrong, but I believe you should be able to trigger an event from any controller within one or more methods, Event Manager listens for the event, then Event Manager executes code in a plugin associated with the event. There is very little documentation for this library, but the Joomla developer docs should give you a good idea of the potential of this library.

I use the Base Controller approach myself. In some base controllers, I add helper code after the closing brace for the base controller class when the helper functions are required by all controllers. However, the helper functions could just as well been loaded from a separate helper file.


Messages In This Thread
Should I make a library, module or singleton class... - by El Forum - 03-17-2008, 08:31 PM
Should I make a library, module or singleton class... - by El Forum - 03-17-2008, 09:35 PM
Should I make a library, module or singleton class... - by El Forum - 03-18-2008, 01:57 AM
Should I make a library, module or singleton class... - by El Forum - 03-18-2008, 11:26 AM
Should I make a library, module or singleton class... - by El Forum - 03-18-2008, 11:53 AM
Should I make a library, module or singleton class... - by El Forum - 03-18-2008, 12:30 PM
Should I make a library, module or singleton class... - by El Forum - 03-18-2008, 01:06 PM
Should I make a library, module or singleton class... - by El Forum - 03-18-2008, 03:27 PM
Should I make a library, module or singleton class... - by El Forum - 03-18-2008, 08:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB