• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
extensions for an existing CI app (hooks)

#1
Hi,

Let say, I have an CodeIgniter application that's going to be deployed in many sites. They all have the same needs (hence they use the same app), but they also have specific needs.
Is there a way to use "extensions" on a CodeIgniter application (the same way, we use "plugins" in WordPress, for instance - not the same as CI plugins) ?
Of course, I could use CI librairies to add the code, but I will still need to modify the existing application (for instance to add a new line in the application menu). I don't want to modify the CI application otherwise, I won't be able to release easily a new version.
In WordPress (and others) they solved this, by using hooks.
Is there something similar that could be used in CI ?


Thanks in adance,
[email protected]
Reply

#2
config files?
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply

#3
Did you check the user guide?
You might consider https://www.codeigniter.com/user_guide/g...hooks.html
Reply

#4
(03-31-2019, 12:15 PM)ciadmin Wrote: Did you check the user guide?
You might consider https://www.codeigniter.com/user_guide/g...hooks.html

Thanks for that: indeed, I was not aware of hooks in CI, and that could be a starting point ... but there's much more work to be done to use that to provide extensions/plugins in an application.
I was looking for a more complete solution ... but I suppose it does not exist in CI.
Reply

#5
Maybe this will work for what your trying to do.

Modular Extensions - HMVC
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.