I'm writing a private function in cakephp like this but I see this error: Using $this when not in object context i think its because I havent access to model and find data from private function help me please
{
public function blah(){
...
}
public function call_remember_me(){
$remembered = remember_me($user_id);
}
}
function remember_me($user_id)
{
$user = $this->User->findById($user_id);
....
}