CodeIgniter Forums

Full Version: IgnitedRecord and Matchbox incompatible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Gaz[/eluser]
Has anybody managed to get these two to play nicely together? If I try and use the Matchbox Loader.php library replacement I get

Code:
Fatal error: Class 'ignitedrecord/ignitedrecord' not found in /Users/Gaz/Sites/katana_cms/application/libraries/Loader.php on line 1078

Cheers,
Gaz.

El Forum

[eluser]m4rw3r[/eluser]
It seems like the Loader of Matchbox doesn't have support for libraries in subdirs (I haven't tried Matchbox).

One fix is to upgrade the loader so it can handle that (but I don't know if Matchbox has support for this) and here is another one:

Create this file:
Code:
<?php
require_once 'ignitedrecord/ignitedrecord.php';

/* End of file ignitedrecord.php */
/* Location: ./application/libraries/ignitedrecord.php */
Then you load IgnitedRecord with $this->load->library('ignitedrecord'); (no subdir).

El Forum

[eluser]Gaz[/eluser]
OK, nice one.

Thanks for the help, and of course IR!

Cheers,
Gaz.