Welcome Guest, Not a member yet? Register   Sign In
accessing models
#4

[eluser]Colin Williams[/eluser]
It's always best, when outside of a controller, to use the get_instance() function and call other libs/models from it.

Code:
$ci =& get_instance();
$ci->MMail->denialEmail(boring variables...);


Messages In This Thread
accessing models - by El Forum - 01-15-2009, 01:11 PM
accessing models - by El Forum - 01-15-2009, 02:49 PM
accessing models - by El Forum - 01-15-2009, 03:01 PM
accessing models - by El Forum - 01-15-2009, 03:10 PM
accessing models - by El Forum - 01-15-2009, 03:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB