Modular Extensions - HMVC version 5.4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Modular Extensions - HMVC version 5.4 (/showthread.php?tid=38057) |
Modular Extensions - HMVC version 5.4 - El Forum - 06-24-2011 [eluser]InsiteFX[/eluser] lol Modular Extensions - HMVC version 5.4 - El Forum - 06-24-2011 [eluser]wiredesignz[/eluser] @InsiteFX, Calls directly to classes are not case sensitive because only one class by this name can ever be loaded. Code: <?php echo modules::run('mod_one'); ?> This code is ok, you do not need to add controller/method when the controller and module have identical names. The method will default to index in this case. Modular Extensions - HMVC version 5.4 - El Forum - 06-24-2011 [eluser]InsiteFX[/eluser] ya, I was just showing him how you explain on the WIKI how to do module::run Thank's for the update. InsiteFX Modular Extensions - HMVC version 5.4 - El Forum - 06-25-2011 [eluser]tcgonline01[/eluser] Oh thanks every one! i changed mod_one_view.php and mod_two_view.php to mod_one.php and mod_two.php, it's working. But it's not worked when I use Codeigniter Template Class mod_one.php Code: class Mod_one extends CI_Controller { mod_two.php Code: class Mod_two extends CI_Controller { The master template: Application/views/template_main.php Code: <html > plz help me how to use template class and Modular Extensions - HMVC you can download template here: Code: http://williamsconcepts.com/ci/codeigniter/libraries/template/ Modular Extensions - HMVC version 5.4 - El Forum - 06-25-2011 [eluser]InsiteFX[/eluser] What do you have in content? If you r content is empty then it will not display anything! InsiteFX Modular Extensions - HMVC version 5.4 - El Forum - 01-19-2012 [eluser]psychoder[/eluser] form validation callbacks are not triggered... can someone help me to point out the changes needed to fix it?? please? Modular Extensions - HMVC version 5.4 - El Forum - 01-19-2012 [eluser]wiredesignz[/eluser] @psychoder, http://ellislab.com/forums/viewreply/969568/ Modular Extensions - HMVC version 5.4 - El Forum - 01-19-2012 [eluser]psychoder[/eluser] @wiredesignz, thanks a lot... Modular Extensions - HMVC version 5.4 - El Forum - 01-25-2012 [eluser]ericrjones1[/eluser] [quote author="wiredesignz" date="1326965330"]@psychoder, http://ellislab.com/forums/viewreply/969568/[/quote] @wiredesignz With the new version of the framework 2.1.0, the quoted solution does not work any more since access to Code: $this->form_validation->CI To have callback working again, you will need to extend CI_Form_validation and do something like the following: Code: class MY_Form_validation extends CI_Form_validation { Then within your MY_Controller Code: class MY_Controller extends MX_Controller Thanks for all the hard work. Modular Extensions - HMVC version 5.4 - El Forum - 01-25-2012 [eluser]wiredesignz[/eluser] @ericrjones1, I suggest you look at the linked solution more carefully. There is a MY_Form_validation extension shown with a public $CI class variable. |