I want to call A (Codeigniter) login Class and it functions from B Codeigniter. Anyone can explain and share idea how can do this. Thanks
            Asked
            
        
        
            Active
            
        
            Viewed 1.2k times
        
    1
            
            
        - 
                    This may help you http://www.techsirius.com/2013/01/load-controller-within-another.html – Jenz Apr 05 '14 at 09:24
 - 
                    Thanks Jenz for your reply but I want to call class from another codeigniter (directory). – user2365514 Apr 05 '14 at 09:35
 
2 Answers
1
            This question is similar to:
How to load a controller from another controller in codeigniter?
or Codeigniter call function within same class
Try this, you will get solution.
        Community
        
- 1
 - 1
 
        Nehil Mistry
        
- 1,101
 - 2
 - 22
 - 51
 
0
            
            
        <?php 
class MY_Controller extends CI_Controller {
  public function is_logged()
  {}
}
class Home_Controller extends MY_Controller {
    public function show_home()
    {
         if (!$this->is_logged()) {
           return false;
         }
    }
}
?>
        Murari Pradip Singh
        
- 39
 - 5
 
- 
                    I want to call class from another codeigniter (directory) example: Call A codeignitor (login) class from B Codeigntor directory (test) class – user2365514 Apr 05 '14 at 09:39