Very Simple Issue I cant solve - 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: Very Simple Issue I cant solve (/showthread.php?tid=24628) |
Very Simple Issue I cant solve - El Forum - 11-14-2009 [eluser]GamingFusion[/eluser] I want the home page to displays the welcome message set in the info table of the database. Buts its not. why? Model Code: function getInfo() Controller (its doing other stuff just look at the last data entry(query)) Code: function index() View Code: <h1><?=$heading?></h1> Very Simple Issue I cant solve - El Forum - 11-14-2009 [eluser]The Casual Bot[/eluser] Hey there, you need to load your model Code: $this->load->model('getInfo'); then change Code: $data['query'] = $this->database->getInfo(); to Code: $data['query'] = $this->modelname->getInfo(); hope it helps try here to http://ellislab.com/codeigniter/user-guide/general/models.html Very Simple Issue I cant solve - El Forum - 11-15-2009 [eluser]Maurice Calhoun[/eluser] Sorry, but I had to do this. Code: function index() |