![]() |
Model is loaded but I get error. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Model is loaded but I get error. (/showthread.php?tid=56593) |
Model is loaded but I get error. - El Forum - 01-04-2013 [eluser]nthvision[/eluser] PHP keeps throwing me this error Code: A PHP Error was encountered Even though I clearly loaded my model within the constructor... Code: <?php Any thoughts on this? Model is loaded but I get error. - El Forum - 01-05-2013 [eluser]coolfactor[/eluser] It looks like you're using $CI instead of $this to access your model. Model is loaded but I get error. - El Forum - 01-05-2013 [eluser]nthvision[/eluser] [quote author="coolfactor" date="1357372681"]It looks like you're using $CI instead of $this to access your model.[/quote] I had to use the $CI super object to "hack" my way through and enable use of the said model and its methods :/ Model is loaded but I get error. - El Forum - 01-05-2013 [eluser]PhilTem[/eluser] I don't see why you would need to use $CI if $this must work as well. Secondly, you do not define $CI anywhere, so you are accessing something that's not there. |