Welcome Guest, Not a member yet? Register   Sign In
Problem with a driver
#1

[eluser]Unknown[/eluser]
Hi guys!

I'm trying to write my first CI driver, but I'm experiencing some problems with it... . It doesn't matter what I do, I always get the message that ci is unable to load the requested driver... .

Here is the file structure:
/application
/libraries
/DataObjectWrapper
DataObjectWrapper_customer_dow
DataObjectWrapper
Here is the constructor from my driver:
Code:
class DataObjectWrapper extends CI_Driver_Library implements do_wrapper
{
    protected $valid_drivers;
    protected $CI;

    /* @var $data_object DataObject */
    protected $data_object;
    /* @var $db DB */
    protected $db;

    public function __construct(Array $params)
    {
        $this->valid_drivers = array('dataobjectwrapper_customer_dow');
        $this->data_object = $params[0];
        $this->db = $params[1];
    }
}

And here is the child:
Code:
class Customer_DOW extends CI_Driver
{

    public function hi()
    {
        echo 'hi';
    }
}

Can somebody please tell me, whats going on?


Messages In This Thread
Problem with a driver - by El Forum - 08-20-2012, 10:27 AM
Problem with a driver - by El Forum - 08-22-2012, 05:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB