public function hiddenFormFields()
    {
        $fields = $this->getParameter('fields');

        if (empty($fields))
            return '';

        $html_array = ArrayUtils::htmlArrayFlatten($fields);

        foreach ($html_array as $name => $value) {
            $name  = htmlentities($name, ENT_QUOTES);
            $value = htmlentities($value, ENT_QUOTES);

            $output[] = "<input type=\"hidden\" name=\"$name\" value=\"$value\" />";
        }

        return join("\n", $output);
    }
public function hiddenFormFields()
    {
        $fields = $this->getParameter('fields');

        if (empty($fields))
            return '';

        $html_array = ArrayUtils::htmlArrayFlatten($fields);

        foreach ($html_array as $name => $value) {
            $name  = htmlentities($name, ENT_QUOTES);
            $value = htmlentities($value, ENT_QUOTES);

            $output[] = "<input type=\"hidden\" name=\"$name\" value=\"$value\" />";
        }

        return join("\n", $output);
    }
public function hiddenFormFields ( ) { $ fields = $ this -> getParameter ( 'fields' ) ; if ( empty ( $ fields ) ) return '' ; $ html_array = ArrayUtils :: htmlArrayFlatten ( $ fields ) ; foreach ( $ html_array as $ name => $ value ) { $ name = htmlentities ( $ name , ENT_QUOTES ) ; $ value = htmlentities ( $ value , ENT_QUOTES ) ; $ output [ ] = "<input type=\"hidden\" name=\"$name\" value=\"$value\" />" ; } return join ( "\n" , $ output ) ; }
Returns all the fields passed into 'fields' as hidden fields to submit

Expected Param:
fields array A PHP array that needs to be converted to hidden fields

@return string
Returns all the fields passed into fields as hidden fields to submit