Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Fieldset, label with class
  • Hello, I'm trying to add a "class" attribute to my form label.
    I read this comment (http://fuelphp.com/forums/topics/view/9238/10#11057) that show a way to achieve this, but when I do that with my model $_properties array i get an error. ErrorException [ Notice ]: Undefined index: label
    COREPATH/classes/form/instance.php @ line 593 protected static $_properties = array(
    'id',
    'sigla' => array(
    //'label' => array('label' =>'Sigla'),
    'data_type' => 'varchar',
    'validation' => array('required', 'max_length' => array(20)),
    'form' => array(
    'label' => array('label' => 'Sigla', 'class' => 'control-label'),
    )
    ),
    .
    .
    .
  • There is no support for additional attributes for a label, the label value in the properties has to be a string.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion