/** * 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)); }
/** * 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); }