Welcome Guest, Not a member yet? Register   Sign In
Unable to load the requested file:
#1

[eluser]Asinox[/eluser]
Hi, in my localhost the site is working, but in the remote host, when i trying to login into the control panel i get this error:
Code:
An Error Was Encountered

Unable to load the requested file: adm/bienvenido.php

some help please?

controller bienvenido
Code:
class Bienvenido extends Controller{

    // constructor
    function Bienvenido(){
        parent::Controller();
        session_start();
        error_reporting(0);
        
        $this->load->library('validation');
        $rules['username']    = "trim|required|xss_clean";
        $rules['password']    = "trim|required|xss_clean";
        
        $this->validation->set_rules($rules);
        
        $fields['username'] = 'Username';
        $fields['password'] = 'Password';
        
        $this->validation->set_fields($fields);
        
        $this->validation->set_message('required', ' %s es requerido');
        $this->validation->set_error_delimiters('<div class="error">', '</div>');
        
        
        
    }
    
    
    //funcion verificar
    function verificar(){
        if ($this->validation->run() == FALSE){
            $data['main'] = 'login';
            $data['title'] = 'Paso a Paso Online | Admin Login';
            $this->load->vars($data);
            $this->load->view('adm/bienvenido',$data);
        }else {
            $data['main'] = 'login';    
            $data['title'] = 'Paso a Paso Online | Admin Login';
            $this->load->vars($data);
            $this->load->view('adm/bienvenido',$data);
        }

        if($this->input->post('username') && $this->input->post('password') ){
            $u = $this->input->post('username');
            $pw = $this->input->post('password');    
            $this->Madmins->verificarusuario($u,$pw);
            if($_SESSION['userid'] > 0){
                redirect('adm/dashboard','refresh');
        }
      }
            
    }
}
Some Help?
#2

[eluser]David Cassidy[/eluser]
Make sure that the file /application/views/adm/bienvenido.php uploaded correctly. Seems, from what I can gather with the supplied code, your login fails and then tried to load the view file that is non-existent (apparently). Though, I'm curious as to why you have an if() else() statement that performs the same function in both cases and will therefore always redirect to the login page?
#3

[eluser]Asinox[/eluser]
ok, i fix.... the name in my autoload was wrong with UPPERCASE

Thanks
#4

[eluser]Asinox[/eluser]
ufff sorry not working

i dont know what happen
#5

[eluser]Asinox[/eluser]
ok i fixed Big Grin

this error mean the cant find the file Smile

so if the file is UPPERCASE and u call without UPPERCASE there's this error.

Big Grin

nice




Theme © iAndrew 2016 - Forum software by © MyBB