Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Błąd] Fatal error: Call to undefined method, PILNE!
aleks124
post
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 24.11.2009

Ostrzeżenie: (0%)
-----


Witam,
Postawiłem sobie na pewien skrypt. Przy próbie zalogowania do panelu administracyjnego skrypt zwraca błąd:
Cytat
Fatal error: Call to undefined method Users_model::get_user_function() in C:\xampp\htdocs\app\controllers\administrator\auth.php on line 105


Linia 105 w pliku auth.php wygląda następująco:
Cytat
$query = $this->Users_model->get_user_function($login);


A tu fragment pliku users_model.php:
Cytat
function get_user_by_id($user_id)
{

$this->db->where('id', $user_id);

$result = $this->db->get($this->_table);

if($result->num_rows()!=0)
{
return $result;
}
else {
return false;
}
}

/*function get_user_by_username($username)
{
$this->db->where('username', $username);
return $this->db->get($this->_table);
}*/
function get_user_by_username($username)
{
$this->db->where('username', $username);
return $this->db->get($this->_table);
}
function get_user_by_email($email)
{
$this->db->where('email', $email);
return $this->db->get($this->_table);
}


Proszę o pilną pomoc (IMG:style_emoticons/default/sad.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.09.2025 - 13:39