예제 #1
0
 /**
  * Render form errors
  *
  * @param  string|array $errors Error(s) to render
  * @param  array $options
  * @return string
  */
 public function formErrors($errors, array $options = null)
 {
     if (empty($options['class'])) {
         $options['class'] = 'help-block';
     }
     return parent::formErrors($errors, $options);
 }
예제 #2
0
 public function formErrors($errors, array $options = null)
 {
     if (empty($options['class'])) {
         $options['class'] = 'errors alert alert-danger';
     }
     $html = parent::formErrors($errors, $options);
     return $html;
 }