Welcome Guest, Not a member yet? Register   Sign In
Problem with extended Email class
#3

[eluser]Aken[/eluser]
[quote author="jakelehner" date="1344367933"]Autoload is loading the email library for Controllers and Models which have access to the default CI instance. Since you're creating your own instance of CI under $ci, you'll need to call $ci->load to load the email library under that instance.[/quote]

This isn't true. CI is loaded by reference, hence the get_instance() function (which, by the way, you don't need when extending the Session library, because there is already a $this->CI property available). The object will be the same, whether it's in your controller or a referenced object in a library.

I did a quick test and the Email property was available to me no problem. You should post more code or try and simplify your code down to where it works, and see what might've gone wrong after that.


Messages In This Thread
Problem with extended Email class - by El Forum - 08-07-2012, 10:58 AM
Problem with extended Email class - by El Forum - 08-07-2012, 12:32 PM
Problem with extended Email class - by El Forum - 08-07-2012, 09:12 PM
Problem with extended Email class - by El Forum - 08-08-2012, 09:36 AM
Problem with extended Email class - by El Forum - 08-08-2012, 10:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB