How load model in another modules in hmvc in codeigniter?



Question:

I want to use The Modular Extensions HMVC in my Project like this:


modules  
      module01
            models
                models01.php
            controllers
                controller01.php
            views
                views01.php
      module02
            models
                models01.php
            controllers
                controller01.php
            views
                views01.php
and i want use 'models01.php' from module01 , is there any way?

Answer:


$this->load->model("module01/models01");
You can call any models from any module like this. Tested.


Source:
https://stackoverflow.com/questions/14809281/how-load-model-in-another-modules-in-hmvc-in-codeigniter

1 komentar:

  1. What is the difference between casino games and slots?
    Slot poormansguidetocasinogambling.com games are the most popular types of casino games, ventureberg.com/ and the majority are bsjeon slots. septcasino and septcasino the most commonly played slot games.

    BalasHapus

Diberdayakan oleh Blogger.