This was posted 8 months ago: Codeigniter 2.0 third_party folder. This was posted almost a year ago: http://philsturgeon.co.uk/blog/2010/04/codeigniter-packages-modules.
I’m wondering if anything significant has changed since those posts. Particularly, is it possible to share resources between application packages? If not, what are my options? HMVC?
It’s not possible in the way HMVC is described, but it is possible with CI to share ressources.
Take a look at the bottom of this documentation page – the part labeled Application “Packages”.
The documentation describes the use of the third_party folder in your application, but instead you could point the
add_package_path()method argument to any folder you’d wish.But, it has it’s limitations (which can be seen on the same page).