Form helper :: <input type="button"

Permalink
Fatal 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 . '" ';


Thanks!

Jon

jbx
 
Remo replied on at Permalink Reply
Remo
I've sent Andrew an email..
andrew replied on at Permalink Reply
andrew
Adding this into svn
jbx replied on at Permalink Reply
jbx
Thanks both - appreciate it :)

BTW, Andrew, did the database Session code I sent you make it into SVN?

Thanks,

Jon