Welcome Guest, Not a member yet? Register   Sign In
Need help with a plugin system
#6

[eluser]Yorick Peterse[/eluser]
[quote author="xwero" date="1242054156"]The question is what can the plugins do? Is their function adding content or is their function to alter the controllers behaviour?

Wordpress plugins are easy to develop as it it a closely coupled system. CI is a framework so you can't go to specific because then you loose flexibility.

If you want to add plugins you need to provide triggers. This means you have to change the controller method or the view to do this if you want the plugin to do it's job.

As an alternative trigger for plugins that add content to the page you can connect them to view files. But then you still have to change the view to echo the content if the content needs to be embedded in the view. If the plugin content has to come before or after the view file it is a nice solution i think.[/quote]

The idea was to load the plugins in the constructor or a certain function, before anything else was being executed.


Messages In This Thread
Need help with a plugin system - by El Forum - 05-10-2009, 02:25 PM
Need help with a plugin system - by El Forum - 05-10-2009, 06:25 PM
Need help with a plugin system - by El Forum - 05-11-2009, 02:40 AM
Need help with a plugin system - by El Forum - 05-11-2009, 03:24 AM
Need help with a plugin system - by El Forum - 05-11-2009, 04:02 AM
Need help with a plugin system - by El Forum - 05-11-2009, 04:16 AM
Need help with a plugin system - by El Forum - 05-11-2009, 04:34 AM
Need help with a plugin system - by El Forum - 05-11-2009, 06:56 AM
Need help with a plugin system - by El Forum - 05-11-2009, 07:23 AM
Need help with a plugin system - by El Forum - 05-11-2009, 07:28 AM
Need help with a plugin system - by El Forum - 05-11-2009, 07:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB