Created
December 15, 2014 14:23
-
-
Save mbn18/6782ec00afe8addfe480 to your computer and use it in GitHub Desktop.
How to pass label attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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