【发布时间】:2010-06-06 01:59:59
【问题描述】:
如何在 sfDoctrineGuardPlugin 中更改表单的模板?
也就是说,我需要更改 sfDoctrineGuardPlugin 提供的登录表单的输入元素(用户名、密码)的 HTML(类、id)。
我更改了apps/app_name/modules/sfGuardAuth/templates/singinSuccess.php,但它只是回显$form(我需要更改该部分的内容-$form):
<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
<table>
<?php echo $form ?>
</table>
<input type="submit" class="go_button" value="ir" />
<a href="<?php echo url_for('@sf_guard_password') ?>"><?php echo __('Forgot your password?') ?></a>
</form>
(它真的应该像改变一个 _form.php => 我找不到这个,虽然:S)
感谢大家提供的任何答案=)
【问题讨论】: