I know I've asked a lot here. But now it's a problem that escapes my understanding, I've uploaded all my information to this page link
It happens, that when I try to access, I throw the error
"An Error Was Encountered
Unable to locate the model you have specified: loginmodel "
You can see it for yourself, I do not know why it happens. Locally, it works wonders for me.
Here my codes.
<?php
class LoginController extends CI_Controller
{
public function process()
{
$this->load->model("LoginModel");
$this->load->model('AccountModel');
//$this->load->library('javascript');
$username = $this->input->post("username");
$password = $this->input->post("password");
if ($this->LoginModel->Login($username, $password))
{
$data["Cuentas"] = $this->AccountModel->getAllAccountInfo();
$this->load->view('admin/index', $data);
}
}
}
?>
<?php
class AccountModel extends CI_Model
{
public function getAllAccountInfo()
{
$query = $this->db->query('SELECT cuenta, nombre, buscar, pago, monto, fecha, banco, interes, concepto, cuota, credito, debito FROM accounts');
return $query->result_array();
}
public function saveData()
{
}
}
?>
<?php
class LoginModel extends CI_Model
{
public function Login($user, $pass)
{
$this->db->where('username', $user);
$this->db->where('password', $pass);
$query = $this->db->get('usuarios');
if ($query->num_rows() == 1)
return true;
return false;
}
}
?>