Skip to main content

I'm getting the Unable to load the requested class: url i cant found its solutions please give me suggestion what problems occured

my library code is :-Curl_lib.php

<?php class Curl_lib { function hello() { $CI = & get_instance(); $CI->load->library('url'); $msg = "Hello"; return $msg; } } ?> 

Controller code is:-

<?php class Curl extends CI_Controller { function __construct() { parent::__construct(); $this->load->library('curl_lib'); $this->load->helper('url'); } function get_content() { $message = $this->curl_lib->hello(); echo $message; } } ?> 

I'm getting the Unable to load the requested class: url i cant found its solutions please give me suggestion what problems occured

my library code is :-Curl_lib.php

<?php class Curl_lib { function hello() { $CI = & get_instance(); $CI->load->library('url'); $msg = "Hello"; return $msg; } } ?> 

Controller code is:-

<?php class Curl extends CI_Controller { function __construct() { parent::__construct(); $this->load->library('curl_lib'); $this->load->helper('url'); } function get_content() { $message = $this->curl_lib->hello(); echo $message; } } ?> 

I'm getting the Unable to load the requested class: url

my library code is :-Curl_lib.php

<?php class Curl_lib { function hello() { $CI = & get_instance(); $CI->load->library('url'); $msg = "Hello"; return $msg; } } ?> 

Controller code is:

<?php class Curl extends CI_Controller { function __construct() { parent::__construct(); $this->load->library('curl_lib'); $this->load->helper('url'); } function get_content() { $message = $this->curl_lib->hello(); echo $message; } } ?> 
deleted 21 characters in body
Source Link
Kevin
  • 41.9k
  • 12
  • 57
  • 72

I'm getting the Unable to load the requested class: url i cant found its solutions please give me suggestion what problems occured
my

my library code is :- Library Name is:-Curl_lib.php load->library('url'); $msg = "Hello"; return $msg; } } ?>

Controller<?php class codeCurl_lib {  is: function hello() { $CI = & get_instance(); $CI->load->library('url');  $msg = "Hello";   return $msg; } } ?> 

Controller code is:-

<?php class Curl extends CI_Controller {   function __construct()   {   parent::__construct();   $this->load->library('curl_lib');   $this->load->helper('url');   }   function get_content()   {   $message = $this->curl_lib->hello();   echo $message;   } } ?> 

I'm getting the Unable to load the requested class: url i cant found its solutions please give me suggestion what problems occured
my library code is :- Library Name is:-Curl_lib.php load->library('url'); $msg = "Hello"; return $msg; } } ?>

Controller code is:- <?php class Curl extends CI_Controller { function __construct() { parent::__construct(); $this->load->library('curl_lib'); $this->load->helper('url'); } function get_content() { $message = $this->curl_lib->hello(); echo $message; } } ?> 

I'm getting the Unable to load the requested class: url i cant found its solutions please give me suggestion what problems occured

my library code is :-Curl_lib.php

<?php class Curl_lib {   function hello() { $CI = & get_instance(); $CI->load->library('url');  $msg = "Hello";   return $msg; } } ?> 

Controller code is:-

<?php class Curl extends CI_Controller {   function __construct()   {   parent::__construct();   $this->load->library('curl_lib');   $this->load->helper('url');   }   function get_content()   {   $message = $this->curl_lib->hello();   echo $message;   } } ?> 
Source Link

I create my own library in codeIgniter

I'm getting the Unable to load the requested class: url i cant found its solutions please give me suggestion what problems occured
my library code is :- Library Name is:-Curl_lib.php load->library('url'); $msg = "Hello"; return $msg; } } ?>

Controller code is:- <?php class Curl extends CI_Controller { function __construct() { parent::__construct(); $this->load->library('curl_lib'); $this->load->helper('url'); } function get_content() { $message = $this->curl_lib->hello(); echo $message; } } ?>