开发者

template for FORM in Symfony with admin generator

I generated admin doctrine in Symfony 1.4. I use generator.yml. I would like edit template for form. I know that it is in cache. I copy this for backend, but there doesnt have $form. I would like make somethings as in frontend:

<table>
<tr><td>$form['name']->render();</td>
</tr>
<tr><td>$form['city']->render();</td>
</tr>
<开发者_Go百科;/table>

etc, but how can i make with admin generator? there are many include partial and foreach.


Maybe the best thing is to customize the generator templates themselves instead of copying from cache and overriding. These templates can be found in symfony_folder/lib/plugins/sfDoctrinePlugin/data/generator/sfDoctrineModule/admi‌​n/template/templates

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜