[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?