Short version
Where is the client class looking for the DispatchableInterface interface?
class Client implements Libraries\Stdlib\DispatchableInterface
I am trying to add ZF2 libraries to a CodeIgniter installation. The entire Zend folder is located in:
/Users/stef/Sites/site_name/application/libraries/
In my CI controller, I have
public function run() { $CI =& get_instance(); $CI->load->library('Zend'); $CI->load->library('Zend/Http/Client'); $client = new Client($url);
When I call the run () method, I get a fatal error:
Fatal error: 'Zend\Stdlib\DispatchableInterface' interface was not found in / Users / stef / Sites / site _name / application / libraries / Zend / Http / Client.php on line 27
In the /Zend.php libraries (the file I added, not the ZF part) I have
function __construct($class = NULL) { // include path for Zend Framework // alter it accordingly if you have put the 'Zend' folder elsewhere ini_set('include_path',ini_get('include_path') . PATH_SEPARATOR . APPPATH . 'libraries/Zend/'); }
It doesn't look like I set include_path, even if I set dummy values, the fatal error will remain the same. It seems that loading the DispatchableInterface interface does not use include_path.
How can I make Client.php "find" the interface that it is trying to do here:
class Client implements Libraries\Stdlib\DispatchableInterface
source share