Welcome Guest, Not a member yet? Register   Sign In
class not found in datamapper.php on line 3005
#2

[eluser]bEz[/eluser]
Your Model class name must be SINGULAR and first-letter capitalized: "Dept" not "Depts"
Code:
<?php
class Dept extends DataMapper {

    public function __construct()
    {
        // model constructor
        parent::__construct();
    }
}
?>
Also, the file name is singular and lower-case as well. "dept.php"

Finally, when you load from the controller, you will use the sigular form (without the .php of course)
Code:
$this->load->model('dept');
$departement = new Dept();


Messages In This Thread
class not found in datamapper.php on line 3005 - by El Forum - 06-05-2009, 02:10 PM
class not found in datamapper.php on line 3005 - by El Forum - 06-05-2009, 02:15 PM
class not found in datamapper.php on line 3005 - by El Forum - 06-05-2009, 02:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB