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

[eluser]tonanbarbarian[/eluser]
since the problem is now in the student controller can you show all of the code for it

do you have a constructor in the student controller? I noticed you do not have one in the auth controller either

make sure it has something like this
Code:
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class Student extends Controller {

  function Student() {
    parent::Controller();
  } // Student()

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

} // class Student

If you do not have the constructor then you will not be able to load things correctly in the model


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