Loader isnt loading -.- - 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: Loader isnt loading -.- (/showthread.php?tid=52406) |
Loader isnt loading -.- - El Forum - 06-09-2012 [eluser]nagata[/eluser] Could someone help with this Code: <?php Its small php code that determines user is online currently. it was working when it was in views/auth/index.php (User List) But stoped working in other documents... I tried to place it EVERYWHERE, but sadly there was no result for it to work excep this error Code: A PHP Error was encountered could someone explain me this black CI humor and make it work? I been trying to make it work like 2 hours now -.- the i_am_on() function Code: public function i_am_on($id) Loader isnt loading -.- - El Forum - 06-09-2012 [eluser]Samus[/eluser] You need to seriously go read the CI user guide and understand it. Loading in a view? Seriously? Start here: http://ellislab.com/codeigniter/user-guide/overview/mvc.html Then here: http://ellislab.com/codeigniter/user-guide/general/views.html Loader isnt loading -.- - El Forum - 06-09-2012 [eluser]nagata[/eluser] your reply sorta helped me to get the idea of adding the auth_model into autoload config... so yeah thank you. Loader isnt loading -.- - El Forum - 06-09-2012 [eluser]Samus[/eluser] [quote author="nagata" date="1339239650"]your reply sorta helped me to get the idea of adding the auth_model into autoload config... so yeah thank you.[/quote] Glad to help. But my point was that you should be loading from within your controller. Loader isnt loading -.- - El Forum - 06-09-2012 [eluser]nagata[/eluser] I had it loading in controller didnt help either... anyways solved/should be closed. |