Google News
logo
FuelPHP - Interview Questions
What is a module in FuelPHP?
A module is a group of independent MVC elements. The use of modules allows for re-usability and encapsulation of your code. A module typically resides within an application sub-directory named modules. It is suggested to take advantage of modules whenever you're working on a large project, of which you believe the code-base will be more than just a few lines of code. It will help you to keep things neatly in order.
 
A module can operate independently, like for example a blog module or an album module. You can route directly to the module controllers, without having to access any global code. Modules can also be used in a true HMVC context, where controllers call other controllers, which will produce (a part of) the result needed to generate the result of the page request.
Advertisement