HMVC - use of Modules::run vs $this->load0>modules |
Hello CI Community,
I was researching the forums for an answer to this question and I could not find it. I am new to HMVC and I saw that you can call a method from a controller in any part of the code. To do so, there are 2 way to go about it $this->load->modules('mycontroller') $this->mycontroller->mymethod($data) or Modules::run('mycontroller','mymethod',$data). so the question is simple: which is the best practice? Why 2 way of doing it. Which one is more performant than the other etc. Please let us know. Thank you |
Welcome Guest, Not a member yet? Register Sign In |