• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can not create own Driver

I'm new on codeIgniter.

I've tryed to create my own driver - like it is described on CodeIgniter documentation

My Controller never finds the subclass.

If I try to run  

CodeIgniter throws an Error - undefined property "subclass_1"
I have seen that in other tutorials the classes have to be extendet by CI_Driver (subclasses) and CI_Driver_Library (Driver Main Class)
AND: I need a constructor in the main driver:
public function __construct() {

       $this->valid_drivers = ['subclass_1'];


I have debuged (xdebug) the codeIgniter and I think that is the right way.
So why is it not on the codeigniter documantation?
I'm doing something wrong?
When this is the right way - are there other parts in the documentation, where something like this is missing?

Or do I make a mistake?

No Time to create signature


In your controller you should have this in your construct.

You have to load the library in order for it to be accessible in the controller.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.