Tag Archives: HMVC

Codigniter Modular MVC Lesson – How to pass a variable in a module’s controller?

In an ordinary Controller, you can pass a variable something like this: $this->mycontroller->mycontrollerfunction($myvariableA, $variableB, $variableC); in you controller you have: function mycontrollerfunction($varA, $varB,$varC){ //codes, codes, codes… } In modular way, Bookmark on Delicious Digg this post Recommend on Facebook Buzz it up Buzz it up Share on Linkedin share via Reddit Share with Stumblers Tumblr [...]

Tips on using modules on Codeigniter or Modular MVC.

Did you know that you can use a module’s model in a normal CI controller? Here’s how: In an normal controller of CI, load the module in the controller’s constructor. Once loaded, you can now load the module’s models and you can now use those models in any of the normal controller’s functions or methods. [...]

Tips on using modules on Codeigniter or Modular MVC #2

Did you know that you can load a module in another module? Yup., yes you can. Load a module just like loading in a normal CI Controller. In one of your module’s controller, you can simply write: $this->load->module(‘module_name’); then to use it’s model, simply write: $this->load->model(‘loaded_module’s_model’); You can now use model functions from one module [...]

CI HMVC form validation callback problem solved

When you use HMVC with CodeIgniter, you might encouter a problem with form validation callback function. You custom callback functions may not be called to validate you fields. With HMVC, you need to extend the form validation to fix this kind of problem. Bookmark on Delicious Digg this post Recommend on Facebook Buzz it up [...]

Blog WebMastered by All in One Webmaster.
Plugin from the creators of Brindes Personalizados :: More at Plulz Wordpress Plugins