Modular Extensions - HMVC version 5.4 |
[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.
[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
[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/
[eluser]InsiteFX[/eluser]
What do you have in content? If you r content is empty then it will not display anything! InsiteFX
[eluser]psychoder[/eluser]
form validation callbacks are not triggered... can someone help me to point out the changes needed to fix it?? please?
[eluser]wiredesignz[/eluser]
@psychoder, http://ellislab.com/forums/viewreply/969568/
[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.
[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. |
Welcome Guest, Not a member yet? Register Sign In |