Welcome Guest, Not a member yet? Register   Sign In
Can I use Model function in a plugin?
#1

[eluser]shinokada[/eluser]
I am getting an error with this in plugin.

Code:
$catname = $this->ModelCats->getCategoryNamebyProduct($category_id);

It seems I can't use like $this->Modelname in plugin.

The model is autoloaded.

Can anyone suggest the best way? Do I need to change it to helper or library?


Messages In This Thread
Can I use Model function in a plugin? - by El Forum - 01-02-2010, 12:33 PM
Can I use Model function in a plugin? - by El Forum - 01-02-2010, 01:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB