Hi Dears, Recently there was a lot of discussions about the HMVC Pattern support in Phalcon and the ability to build multiple modules applications that support cross modules sub request during the main request.
Today I want to show you the HMVC application I built that supports all the above, it uses separate dependency injector container for each requested module as we don't need the same configuration for every module, all you have to do to request another module is this:
<?php
$result = $this->di->getShared('app')->module(
'module_name',
'controller_name',
'action_name',
array('param1' => 'param1_value')
);
Please review it at this link https://github.com/hishamaborob/Phalcon-HMVC-Multi-Modules and give me your feedback.