예제 #1
0
 /**
  * Prints out the current help
  *
  * @return string A .help-block or .help-inline
  */
 private function getHelp()
 {
     $inline = array_get($this->help, 'inline');
     $block = array_get($this->help, 'block');
     $errors = Former::getErrors();
     if ($errors) {
         $inline = Framework::inlineHelp($errors);
     }
     return join(null, array($inline, $block));
 }
예제 #2
0
 /**
  * Get the errors for the current field
  *
  * @param string $name A field name
  * @return string An error message
  * @static 
  */
 public static function getErrors($name = null)
 {
     return \Former\Former::getErrors($name);
 }