Welcome Guest, Not a member yet? Register   Sign In
custom library with parameters : problem
#4

That's because CI controllers have access to the CI Global Super Objects, views do not.

PHP Code:
private $CI;

public function 
__construct()
{
    
$this->CI =& get_instance();

 
       parent::__construct();

    
log_message('Your Class Name''Your Class Initialized');


What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: custom library with parameters : problem - by InsiteFX - 11-13-2015, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB