Welcome Guest, Not a member yet? Register   Sign In
hosting problem
#11

[eluser]mhungou04[/eluser]
this is my processuer controler
Code:
<?php
class ProcessUser extends Controller
{
    function ProcessUser()
    {
        parent::Controller();
        $data['title']="Login";
        $this->load->view('common/header',$data);
            
    }
    function index()
    {
        $this->load->view('user/login');
        $this->load->view('common/footer');
    }
    function Login()//check user
    {
        $this->simplelogin->login($this->input->post('username'),$this->input->post('password'));
        if($this->session->userdata('logged_in'))
          {
            redirect('Order/ListOrderByStatus/0');
          }
        else
        {
               //User is not logged in
            redirect('/ProcessUser', 'refresh');
        }
    }

    function Logout()
    {    
        $this->simplelogin->logout();
    }
}
#12

[eluser]indocoder[/eluser]
check your view files path. are they already on the right dir?
#13

[eluser]mhungou04[/eluser]
yes. I will try to content everything in the views folder later I'm tired of this




Theme © iAndrew 2016 - Forum software by © MyBB