I'm using this validation code in actions.class.php to validate the input ,
$name = $this->getRequestParameter('title');
if (!$name)
{
$this->getRequest()->setError('The name field cannot be left blank');
return false;
}
But encounter errors like
You must set "compat_10" to true if you want to use this method which is deprecated.
in error log. After getting this error, I set compat_10 to true in settings.yml, but still get the same error.