Problem Email Class |
[eluser]Asinox[/eluser]
Well guys, hi... i dont know what happen today, but in my server i have more site's and there's working with the same configuration that this new one. now i got the problem with the Email Class : Fatal error: Call to a member function initialize() on a non-object in and im loading the email class... Code: public function new_user(){
[eluser]Asinox[/eluser]
ok... i see that i can't send email from a model that's true? i moved my code to the controller and all is fine now ....
[eluser]TheFuzzy0ne[/eluser]
I think you're problem is that you are loading the Email class before the model. If you do it the other way around, the model should be able to access the library. At the very worst case, you could probably just grab a reference to the CodeIgniter Super Object: Code: $CI =& get_instance();
[eluser]Asinox[/eluser]
ok ,thanks for the tip about the super object but jeej now is working form the contoller, in the next site ill try with the Super Object |
Welcome Guest, Not a member yet? Register Sign In |