clonefish logo

addMessage() method

Append an error message to the error messages of clonefish. Most of the time it's used together with invalidate().
$clonefish->invalidate();
$clonefish->addMessage(
  'Some special fields are required!'
);