views:

342

answers:

3

Hi everyone,

I have tried by myself to install Rediska (Redis PHP client) into my codeigniter application, but without any success. I'll get insane amounts of "No such file or directory"-errors when trying to put it into the plugins folder of Codeigniter:

Severity: Warning

Message: require_once(Rediska/Connection/Exception.php) [function.require-once]: failed to open stream: No such file or directory

Filename: Rediska/Connection.php

Line Number: 6

Have anyone succeeded to install Rediska into Codeigniter before me?

From looking at the Rediska install manual, It appears to be a simple and easy drop-in installation: http://rediska.geometria-lab.ru/documentation/get-started/

Since it's only about path-based errors right now, I'll assume that there's should be some handy PHP setting that I can change to make it all work?

Thanks!

+1  A: 
mr.b
+1  A: 

I didn't get the ini_set solution to work, but a variant of that line works great: set_include_path(get_include_path() . PATH_SEPARATOR . APPPATH.'libraries/');

Andreas
+1  A: 

Just noticed the note from phil Sturgeon about plugins being made redundant.....

I'm working on rolling Rediska into a CI library at the moment, but for general use you can using the following to include files based on the CI application path

include(APPPATH.'libraries/rediska/Exception.php');

Would include the Exception.php in system/applications/libraries/rediska/

coldclimatw