Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Class 'Test_model' not found...
#1

[eluser]Gary the Llama[/eluser]
Brand new to CI and I've been going through the User Guide. Everything was great until I got to the Models section.

Here's my model code which is in application/models/test.php:

Code:
class test extends Model
{
    function test()
    {
        // Call the Model constructor.
        parent::Model();
    }
}

I call it from application/controllers/mytest.php like so:

Code:
function index()
{
       $this->load->database();
       $this->load->model('test');

}

And when I go to the page I get this error:

Fatal error: Class 'test' not found in /nfsn/content/garythellama/public/system/libraries/Loader.php on line 177

Any ideas? I saw that there were issues with the class names of your model so I've tried every possible variation and it hasn't made a difference.


Messages In This Thread
Fatal error: Class 'Test_model' not found... - by El Forum - 03-24-2008, 07:58 PM
Fatal error: Class 'Test_model' not found... - by El Forum - 03-24-2008, 08:29 PM
Fatal error: Class 'Test_model' not found... - by El Forum - 03-24-2008, 08:35 PM
Fatal error: Class 'Test_model' not found... - by El Forum - 03-24-2008, 09:51 PM
Fatal error: Class 'Test_model' not found... - by El Forum - 03-24-2008, 09:58 PM
Fatal error: Class 'Test_model' not found... - by El Forum - 03-25-2008, 07:34 AM
Fatal error: Class 'Test_model' not found... - by El Forum - 03-25-2008, 08:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB