Very Simple Issue I cant solve |
[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>
[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-gui...odels.html
[eluser]Maurice Calhoun[/eluser]
Sorry, but I had to do this. Code: function index() |
Welcome Guest, Not a member yet? Register Sign In |