[fixed] - 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: [fixed] (/showthread.php?tid=52919) |
[fixed] - El Forum - 07-02-2012 [eluser]Unknown[/eluser] The problem is fixed! The answer is: I didn't know that you have to change the autoload file. The autoload libaries array. You need to put in the database there. If you use the database. Hey, i'm new with framework. And this one looks very nice. Now i was trying. With tutorials and the user guide. But i wasn't getting far. If i connect to my Database by a model. And then load the model in a controller. So i can view my database content. I get errors. My model code: (filename: web.php) Code: class Web extends CI_model { My controller code: (filename: site.php) Code: class Site extends CI_Controller { The errors i get: Code: A PHP Error was encountered Code: Fatal error: Call to a member function get() on a non-object in C:\wamp\www\win-oortjes\application\models\web.php on line 12 Maybe it is a simple mistake, but i can't find it. I over look it al a couple off times. But can't find the exact problem Thank you! Marijn[/b] |