Welcome Guest, Not a member yet? Register   Sign In
Portable functions in OOP?
#4

[eluser]tonanbarbarian[/eluser]
ok so what is the student.php file?
is it a controller?

reguardless though the way you are loading the model is wrong
Code:
function login() {
        
        $this->load->model('student/auth_model');
            
            if(isset($_POST['submit'])){
                $email         = $_POST['email'];
                $password    = $_POST['password'];
            }
            
        $this->auth_model->login($email,$password);
        
    }

loading it using
Code:
$auth = new Auth_model;
will stop all of the correct inheritance i think


Messages In This Thread
Portable functions in OOP? - by El Forum - 12-21-2007, 04:16 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 05:52 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 05:54 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 06:02 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 06:05 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 06:10 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 06:13 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 11:53 PM
Portable functions in OOP? - by El Forum - 12-22-2007, 12:42 AM
Portable functions in OOP? - by El Forum - 12-22-2007, 12:43 AM
Portable functions in OOP? - by El Forum - 12-22-2007, 04:41 PM
Portable functions in OOP? - by El Forum - 12-22-2007, 05:34 PM
Portable functions in OOP? - by El Forum - 12-22-2007, 10:04 PM
Portable functions in OOP? - by El Forum - 12-22-2007, 11:44 PM
Portable functions in OOP? - by El Forum - 12-23-2007, 12:27 AM
Portable functions in OOP? - by El Forum - 12-23-2007, 12:30 AM
Portable functions in OOP? - by El Forum - 12-23-2007, 12:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB