Form helper :: <input type="button"
PermalinkFatal error: Call to undefined method FormHelper::button()
Half a job bob! ;->
@Frz: could I kindly request the following addition to your form helper please??
/** * Creates a basic button * @param string $name * @param string value * @param array $fields Additional fields appended at the end of the button * return string $html */ public function button($name, $value, $fields = array(), $additionalClasses='') { $_fields = ''; if (isset($fields['class'])) { $additionalClasses = $fields['class']; unset($fields['class']); } foreach($fields as $key => $fieldvalue) { $_fields .= $key . '="' . $fieldvalue . '" ';
Viewing 15 lines of 19 lines. View entire code block.
Thanks!
Jon