public static function validateLogin($username,$password)
{
$select = $this->select();
$select->where('user_name=?',$username);
$select->where('password=?',$password);
$row = $this->fetchRow($select);
If($row)
{
return $row;
}
}
This code doesn’t work, help…
Try it without using $this which does not have context in a static function.
You could use
$model = new self;
$model->select();