slywalker / cakephp-plugin-boost_cake

Bootstrap Plugin for CakePHP
http://slywalker.github.io/cakephp-plugin-boost_cake/
278 stars 93 forks source link

Set label text without having to create array 'text' key. #47

Closed wvdongen closed 10 years ago

wvdongen commented 10 years ago

When creating horizontal forms the input default settings specify the label class. Therefore the 'quick setting' of the label text isn't possible anymore (array merge will fail), for example:

 echo $this->Form->input('birth_dt', array(
    'label' => 'Date of birth',
 ));

So we needed to do the following:

 echo $this->Form->input('birth_dt', array(
    'label' => array(
         'text' => 'Date of birth'
     ),
 ));

This is a little fix so we can set the label again using the 'quick style' without specifying the text key

slywalker commented 10 years ago

Sorry, test is failed. I can not merge (T_T)

wvdongen commented 10 years ago

The test failed due to CakePHP updates from 2.4.3 to 2.4.4. The test has been fixed.

impronta48 commented 10 years ago

Very good result!

slywalker commented 10 years ago

Thank you :+1: