• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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?

#2
[eluser]Cro_Crx[/eluser]
http://ellislab.com/codeigniter/user-gui...aries.html

ctrl + f "Utilizing CodeIgniter Resources within Your Library"


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.