Welcome Guest, Not a member yet? Register   Sign In
model will not work! [solved]
#1

[eluser]Unknown[/eluser]
update: my editor inserted quotes were bad...

I cannot get my model to load and it is driving me crazy!

Controller (register.php):
Code:
<?php

class Register extends Controller {

    function __construct()
    {
        parent::Controller();
        $this->load->model(‘Rmodel’);
    }
    
    function index()
    {
        redirect('/etc/');
    }
}
?>

Model (rmodel.php):
Code:
<?php

class Rmodel extends Model {

    function __construct()
    {
        parent::Model();
    }
    
    function doSomething()
    {
        return $this->db->get('etc');
    }
}
?>

error:
Code:
An Error Was Encountered

Unable to locate the model you have specified: �rmodel�


Messages In This Thread
model will not work! [solved] - by El Forum - 07-28-2007, 01:28 PM
model will not work! [solved] - by El Forum - 07-28-2007, 01:38 PM
model will not work! [solved] - by El Forum - 07-28-2007, 01:50 PM
model will not work! [solved] - by El Forum - 07-28-2007, 01:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB