SproutCMS

This is the code documentation for the SproutCMS project

function fieldFieldset()

Return HTML for a field wrapped in a FIELDSET

The main wrapping DIV will contain additional classes if the field is required, disabled or has an error.
A class is also output for hte field method name (if the name contains "Sprout\Helpers\Fb::" this is removed)
If the field has an explicit ID set, that will be added as a class on the wrapper too.

Usage

string LightweightForm::fieldFieldset ( callable $method , string $name , array $attrs , array $options );

Arguments

  1. callable $method
    The actual field rendering method
  2. string $name
    The field name - this is passed to the rendering method
  3. array $attrs
    The field attrs - this is passed to the rendering method
  4. array $options
    The field options - this is passed to the rendering method

Return value

  • string
    HTML