Welcome Guest, Not a member yet? Register   Sign In
How to use plugin from a model
#3

[eluser]wiredesignz[/eluser]
Considering that CI2.0 is not officially released yet and that many people still use CI 1.7 you should understand that plugins are not instantiated by CI, you can load a plugin using the loader or simply include it as per normal PHP, but you must also instantiate and assign the object to a variable yourself.

Code:
$this->load->plugin('a_plugin');

$this->a_plugin = new A_plugin();


Messages In This Thread
How to use plugin from a model - by El Forum - 09-03-2010, 04:16 AM
How to use plugin from a model - by El Forum - 09-03-2010, 04:34 AM
How to use plugin from a model - by El Forum - 09-03-2010, 05:15 AM
How to use plugin from a model - by El Forum - 09-03-2010, 07:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB