Is there 开发者_如何学Cany drawback in Symfony when generating modules without the --non-verbose-templates
option?
I can only see that whenever you change the model, you also have to change the _form
partial by hand.
Thanks
The difference is that verbose-templates expands the form. For example, in a non-verbose-template the output is:
//..
<?php echo $form ?>
//..
and in a verbose-template:
//...
<tr>
<td><?php echo $form['field_1']->renderLabel() ?></td>
<td><?php echo $form['field_1']->renderError() ?></td>
//etc..
</tr>
//etc.
//...
精彩评论