I want to show a general error message if validation_errors()there are any errors in the array , but if I do something like
if(isset(validation_errors())) { echo 'error'; }
then he goes back and says:
Fatal error: you cannot use the return value of a function in the context of a record
Any help would be great.
source
share