开发者

Options for doctrine:generate-module in Symfony

开发者 https://www.devze.com 2023-02-10 09:11 出处:网络
Is there 开发者_如何学Cany drawback in Symfony when generating modules without the --non-verbose-templates option?

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.
//...
0

精彩评论

暂无评论...
验证码 换一张
取 消