EllisLab text mark
Advanced Search
     
How to call module inside another module in HMVC Codeigniter ?
Posted: 03 October 2012 12:55 AM   [ Ignore ]
Joined: 2012-03-02
27 posts

hi i have 2 module level and user.

location application/modules/level/controllers/level.php
class Level extends MX_Controller
{
    
public function  __construct()
    
{
         parent
::__construct();
    
}
  
    
public function level_all_list()
    
{
        
//code goes here
    
}
}

location 
application/modules/user/controllers/user.php
class User extends MX_Controller
{
    
public function __construct()
    
{
        parent
::__construct();
    
}

    
public function user_add()
    
{
        
//code goes here 
    
}


i wanna ask how i load and use user level module controller inside user module controller
coz i wanna use level_all_list method on level controller
please help me.

 

Thanks