Welcome Guest, Not a member yet? Register   Sign In
Loading library from within datamapper model errors
#1

[eluser]vbsaltydog[/eluser]
I am having a hell of a time trying to load a library from within a datamapper model. I have moved the library loading to the controller level and it works fine so its not the library itself. I have made sure there are no naming collisions so its not that. But when moving the library instantiation into the datamapper model function, it returns NULL. Any idea whats up before I spend hours scouring the deepest, darkest corners of the web?
#2

[eluser]vbsaltydog[/eluser]
Never mind. I got it working with

Code:
$ci =& get_instance();
$ci->load->library('class');
$ci->class->method($param)
#3

[eluser]edoc[/eluser]
Many thanks, was looking for the same thing.




Theme © iAndrew 2016 - Forum software by © MyBB