I created some tables with scaffold of CakePHP2, I have a model called account
and I created a setter and getter:
public function setPassword($password)
{
$this->password = Security::encrypt($password);
}
public function getpassword()
{
return Security::encrypt($this->password);
}
Only the scaffold does not use these methods. How do I perform the hash of the field in both the insert and the view?