CodeIgniter Forums
Model Function returns empty array... - 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 Function returns empty array... (/showthread.php?tid=52393)



Model Function returns empty array... - El Forum - 06-08-2012

[eluser]nagata[/eluser]
So I have been developing my site today, When I decide to move user list part to the template part it was going all right, but then that one mement,
which responds for Online/Offline stopped working, though was working perfect before on the old one without templating.....

I found the problem is that it dosent return array in my model function, I dont know why
heres my model function:
http://pastebin.com/mCW31Rf4
Ignore the $debug I was just checking why it no work...

and here is my template parse part
http://pastebin.com/eruhkj5p
Seems right to me...

and here is the template it self
http://pastebin.com/DikGwvtF

and here is the old view I was using... which was working...
http://pastebin.com/rQTJnbg7

Any help guys? I need this to be working Sad