Ich frage mich, warum $this->Form->select()
in CakePHP 2.1 kommt nicht mit einer Verpackung div
und label
.CakePHP - Formular-> Auswählen hat kein Wrapping div?
Muss ich es selbst wickeln haben mag:
<?php
echo '<div><label for="MyModel">MyModel</label>';
echo $this->Form->select('MyModel', $options, array('empty' => 'choose one'));
echo '</div>';
?>