Posted by jovaniwayne on April 20, 2010
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 [...]
Posted by jovaniwayne on April 19, 2010
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. [...]
Posted by jovaniwayne on April 19, 2010
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 [...]
Posted by jovaniwayne on February 14, 2010
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 [...]