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

[eluser]nirbhab[/eluser]
Use <?php ?> rather than <? ?>,
is there any directory or controller or library named test? I mean, is there any other class test in controller or owner library.

finally, try this:
Code:
class testing extends Model
{
    function testing()
    {
        // Call the Model constructor.
        parent::Model();
    }
}

//controller
function index()
{
       $this->load->database();
       $this->load->model('testing');

}
Hope your file named test/testing exists in Models directory and class name and filenames are same.


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