![]() |
Helper calling model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Helper calling model (/showthread.php?tid=29565) |
Helper calling model - El Forum - 04-13-2010 [eluser]napz[/eluser] Is it possible to load a model inside my helper? $this->mehelper->helperthismethod(); I have an error Fatal error: Using $this when not in object context in C:\xampp\htdocs\cipms\system\application\helpers\studentcv_helper.php on line 5 how can I call a model inside my helper? helper me guys... hehehhe thanks for the helper Helper calling model - El Forum - 04-13-2010 [eluser]Thorpe Obazee[/eluser] load it like you would do in a library. Code: $CI =& get_instance(); Helper calling model - El Forum - 04-13-2010 [eluser]napz[/eluser] yeah thanks bro... |