• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Self written class can acces controller functions (Solved)

#2
[eluser]InsiteFX[/eluser]
Code:
private $CI;

class Your_class_name {

    Public function __construct()
    {
        parent::__construct();

        $this->CI =& get_instance();
    }
}

Code:
$this->CI->load->view('page');

InsiteFX


Messages In This Thread
Self written class can acces controller functions (Solved) - by El Forum - 04-06-2011, 12:53 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.