![]() |
Returning Values for Model Fucntions - 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: Returning Values for Model Fucntions (/showthread.php?tid=25458) |
Returning Values for Model Fucntions - El Forum - 12-12-2009 [eluser]insub2[/eluser] I'm newish to this OOP thing. Is it a good idea or waste of time to have, say, an Update_User_Profile method return TRUE or FALSE depending on weather or not the database actually got updated? Or will the Database error stop the system anyway? Returning Values for Model Fucntions - El Forum - 12-12-2009 [eluser]Ben Edmunds[/eluser] It's usually a good idea in case you ever need to test against it. |