![]() |
Problem with CI Tutorial - 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: Problem with CI Tutorial (/showthread.php?tid=51782) |
Problem with CI Tutorial - El Forum - 05-17-2012 [eluser]chubbypama[/eluser] Hi there. I'm just making my way through the CI tutorials that are included as a part of the documentation. I have created the controller called "news". And in it, I've created both the "create" and "set_news" methods. (please see code below). However, when I test the app and try to save a news item, I get the following error message: Quote:( ! ) Fatal error: Call to undefined method News_model: Source code in news.php looks like this: Code: public function create() Problem with CI Tutorial - El Forum - 05-17-2012 [eluser]chubbypama[/eluser] doh! i figured it out. the set_news should be in my model, not controller. sorry. |