Welcome Guest, Not a member yet? Register   Sign In
Can't get CI2 packages to load..
#1

[eluser]stormbytes[/eluser]
I've got a 'curl_demo' controller that makes a load call to a library 'curl_fetch'. Curl_Fetch has 2 dependency files, 'curl.php' & 'curl_result.php', located in /Application/third_party/curl/.

When I load the controller, CI generates an Error. Unable to load the requested class: curl

What's wrong with this picture?


The Controller:

Code:
class Curl_demo extends CI_Controller
{

function __construct()
{
    parent::__construct();
    $this->load->library('curl_fetch');

}

Curl_Fetch Library constructor:

Code:
class Curl_Fetch
{
    
function __construct()
{        
    $CI =& get_instance();
    
    $CI->load->add_package_path(APPPATH.'third_party/curl/');
    $CI->load->library('curl');
    $CI->load->library('curl_response');
}

}


Messages In This Thread
Can't get CI2 packages to load.. - by El Forum - 12-09-2010, 10:37 PM
Can't get CI2 packages to load.. - by El Forum - 12-09-2010, 11:06 PM
Can't get CI2 packages to load.. - by El Forum - 12-10-2010, 06:57 AM
Can't get CI2 packages to load.. - by El Forum - 12-10-2010, 07:16 AM
Can't get CI2 packages to load.. - by El Forum - 12-10-2010, 07:23 AM
Can't get CI2 packages to load.. - by El Forum - 12-10-2010, 07:40 AM
Can't get CI2 packages to load.. - by El Forum - 12-10-2010, 08:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB