Database::updateProfile() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Database::updateProfile() (/showthread.php?tid=24589) |
Database::updateProfile() - El Forum - 11-13-2009 [eluser]GamingFusion[/eluser] I have a site that will allow a user to update their profile. The problem im having is that it says the my updateProfile() function in my database model is there even though it is. Why? i loads other functions like updateShow() ERROR Quote:Fatal error: Call to undefined method Database::updateProfile() in /Users/User1/Sites/ci/system/application/controllers/members.php on line 307 Model Code: function updateProfile($id) controller Code: function update() Database::updateProfile() - El Forum - 11-13-2009 [eluser]n0xie[/eluser] Do you by any chance run PHP4? If so database is a reserved name and you should name your model something else. Database::updateProfile() - El Forum - 11-13-2009 [eluser]GamingFusion[/eluser] nope im running it on a local server with PHP 5 Database::updateProfile() - El Forum - 11-13-2009 [eluser]GamingFusion[/eluser] it work ever other place i use function from it Database::updateProfile() - El Forum - 11-13-2009 [eluser]GamingFusion[/eluser] i fixed it. It was a bracket that was out of place |