CodeIgniter Forums
IgnitedRecord and Matchbox incompatible? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: IgnitedRecord and Matchbox incompatible? (/thread-13595.html)



IgnitedRecord and Matchbox incompatible? - El Forum - 11-28-2008

[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.


IgnitedRecord and Matchbox incompatible? - El Forum - 11-28-2008

[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).


IgnitedRecord and Matchbox incompatible? - El Forum - 11-28-2008

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

Thanks for the help, and of course IR!

Cheers,
Gaz.