Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Phil Sturgeon's Blog:
CodeIgniter Packages != Modules
Apr 12, 2010 @ 13:14:30

Phil Sturgeon wants to remind CodeIgniter developers out there that pacakges are not the same as modules (packages are a feature in the upcoming CodeIgniter version 2.0).

So many people are asking about the new Packages feature in CodeIgniter 2.0 that I need to put this to bed: Packages are not Modules. These are two entirely different concepts and should not be confused with each other.

He explains modules as things that allow you to split down your application into self-contained logic chunks, more to keep things clean that anything else. Packages, however, allow you encapsulate multiple things - like libraries, helpers and configuration - into a single thing you can drop into your application and go. He also briefly mentions HMVC and how it could be worked into this new version of the framework.

tagged: codeigniter framework package module