Plugin Handling Class - Extends the CI_Hooks Class |
[eluser]Xeoncross[/eluser]
Based on disccustions Here and here I built a way to handle plugins without breaking/changing the CI core - or even your system design pattern. Just drop this class into your application/lib/{prefix}_hooks.php folder and you are set to use the power of hooks throughout the whole of your site. Background: all systems built by more than 3 people need to think about building flexible systems that 3rd parties and end users can change/update/add-to without messing with your classes/models/etc. Plugins are the answer to this - if you need more info please read the two topics above. Download: ExtraHooks on Google Code I would love to have feed back on why I am so stupid for making this, what I could have done, etc... :cheese: Here is an example controller using Hooks: Code: class Hooks extends Controller { |
Welcome Guest, Not a member yet? Register Sign In |