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

[eluser]Ludwig Wendzich[/eluser]
I changed the names of the auth_model login() function to check_login() but am getting the same error.

I'm not sure how breakpoints would work (though I have turned on debugging to 4, but am getting no new messages), mainly because the script fails to before it's even run.

Code:
function login() {
        
        $this->load->model('student/auth_model');
            
            if(isset($_POST['submit'])){
                $email         = $_POST['email'];
                $password    = $_POST['password'];
            }
        echo 'check_point 1';
        $this->auth_model->check_login($email,$password);
        
    }

Right after check_point 1 is echoed, and anything happens the script throws up the error.

I don't understand why? Am I not following the MVC model?

I'm so sorry, I'm trying to get the hang of CI but it's not quite working out so well.


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