Skip to content

Instantly share code, notes, and snippets.

@mbn18
Created December 15, 2014 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbn18/6782ec00afe8addfe480 to your computer and use it in GitHub Desktop.
Save mbn18/6782ec00afe8addfe480 to your computer and use it in GitHub Desktop.
How to pass label attributes
$this->add(array(
'name' => 'name',
'options' => [
'label' => 'Garden Name',
'attributes' => [
'class' => 'col-lg-2 col-sm-2 control-label',
],
],
'attributes' => [
'class' => 'form-control',
'style' => 'direction: rtl',
'placeholder' => 'Write the garden name',
]
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment