src/Towel/Controller/BaseController.php
public function hasErrorMessages() {
      $messages = $this->getMessages();
      foreach ($messages as $message) {
        if ($message->mt == 'error') {
          return true;
        }
      }
      return false;
    }
public function hasErrorMessages() {
      $messages = $this->getMessages();
      foreach ($messages as $message) {
        if ($message->mt == 'error') {
          return true;
        }
      }
      return false;
    }
public function hasErrorMessages ( ) { $ messages = $ this -> getMessages ( ) ; foreach ( $ messages as $ message ) { if ( $ message -> mt == 'error' ) { return true ; } } return false ; }
Checks into the message bag if there is some error message.
Type == error
Checks into the message bag if there is some error message . Type == error