application/controllers/Login.php
//Default function, redirects to logged in user area
Default function, redirects to logged in user area
Default function redirects to logged in user area
public function index() {
        if ($this->session->userdata('admin_login') == 1)
            redirect(base_url() . 'admin/dashboard', 'refresh');
        if ($this->session->userdata('institute_login') == 1)
            redirect(base_url() . 'institute/dashboard', 'refresh');
        if ($this->session->userdata('teacher_login') == 1)
            redirect(base_url() . 'teacher/dashboard', 'refresh');
        if ($this->session->userdata('student_login') == 1)
            redirect(base_url() . 'student/dashboard', 'refresh');
        if ($this->session->userdata('parent_login') == 1)
            redirect(base_url() . 'parents/dashboard', 'refresh');
        $this->load->view('backend/login');
    }
public function index ( ) { if ( $ this -> session -> userdata ( 'admin_login' ) == 1 ) redirect ( base_url ( ) . 'admin/dashboard' , 'refresh' ) ; if ( $ this -> session -> userdata ( 'institute_login' ) == 1 ) redirect ( base_url ( ) . 'institute/dashboard' , 'refresh' ) ; if ( $ this -> session -> userdata ( 'teacher_login' ) == 1 ) redirect ( base_url ( ) . 'teacher/dashboard' , 'refresh' ) ; if ( $ this -> session -> userdata ( 'student_login' ) == 1 ) redirect ( base_url ( ) . 'student/dashboard' , 'refresh' ) ; if ( $ this -> session -> userdata ( 'parent_login' ) == 1 ) redirect ( base_url ( ) . 'parents/dashboard' , 'refresh' ) ; $ this -> load -> view ( 'backend/login' ) ; }
Default function, redirects to logged in user area
Default function redirects to logged in user area