Welcome Guest, Not a member yet? Register   Sign In
Codeigniter within existing site
#2

[eluser]toopay[/eluser]
Before you can use any of CI Instance/object, outside the CI Controller or model you must first declare
Code:
// This will be generates error if you put it outside CI Controller or CI Model scope
$this->load->library('some_ci_library');
// Declare CI instance first
$CI =& get_instance();
$CI->load->library('some_ci_library');


Messages In This Thread
Codeigniter within existing site - by El Forum - 04-18-2011, 12:57 PM
Codeigniter within existing site - by El Forum - 04-18-2011, 11:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB