CodeIgniter Forums
Can't call custom library functions in my extended model (upgrading from 1.7.2. to 2.0.2) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Can't call custom library functions in my extended model (upgrading from 1.7.2. to 2.0.2) (/showthread.php?tid=40844)

Pages: 1 2


Can't call custom library functions in my extended model (upgrading from 1.7.2. to 2.0.2) - El Forum - 04-29-2011

[eluser]ray023[/eluser]
[quote author="Ben Edmunds" date="1304063683"]Ray,

Which download did you use? I will try to duplicate.[/quote]

Core Code

If you are not able to reproduce, please post your working sample project. I'll compare and see what the problem is.

Thanks!


Can't call custom library functions in my extended model (upgrading from 1.7.2. to 2.0.2) - El Forum - 05-14-2011

[eluser]Ben Edmunds[/eluser]
I finally got around to doing some testing on this. It looks like it's because of the order things are loaded in since your loading it in the MY_Model. The best work-around I could find is autoloading if you are going to need something in the MY_Model.


Can't call custom library functions in my extended model (upgrading from 1.7.2. to 2.0.2) - El Forum - 05-14-2011

[eluser]Ben Edmunds[/eluser]
Wait, that didn't work either...


Can't call custom library functions in my extended model (upgrading from 1.7.2. to 2.0.2) - El Forum - 05-14-2011

[eluser]Ben Edmunds[/eluser]
OK, I'll get back to you on this...