![]() |
if statement not working in codeigniter - 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: if statement not working in codeigniter (/showthread.php?tid=60537) |
if statement not working in codeigniter - El Forum - 04-18-2014 [eluser]ede196620[/eluser] Im building a log in for my website I have this if statement: Code: $application = 'home'; here is the function login in user_model if it helps, cant figure this one out any help will be appreciated. Code: public function login() { if statement not working in codeigniter - El Forum - 04-18-2014 [eluser]Tim Brownlaw[/eluser] Hi, Well your call to $this->user_model->login() doesn't return anything... As a quick guess, and you'll need to verify this, your model could be this... Code: public function login() { Cheers Tim |