How to do Password Reset in Symfony 1.4 ? (Without using a plugin)

谁都会走 提交于 2019-12-12 01:05:34

问题


I want to add a Reset Password option for my User login module. So I've followed Askeet Tutorial (symfony 1.0).

But I'm getting errors when I click forgot password it redirect to "Password request Action" with this error:

Fatal error: Call to undefined function input_tag() , submit_tag, form_error()

Why am I getting erros for those keywords? Is that mean those are not compatible with my symfony version (i'm using symfony 1.4, tutorial is for symfony 1.0)

OR Can any one suggest me any other way to develop this (without using a plugin) ?


回答1:


These keywords are related to the old form system of Symfony 1.0. Since Symfony 1.2, there is no more a FormHelper wich containt all its helper (input_tag, textarea_tag, etc ..) because they are now called widget (sfWidgetFormInput, sfWidgetFormTextarea, etc ..).

You should NOT follow this tutorial since it's for Symfony 1.0 and you are using Symfony 1.4.

Instead, you can see how sfDoctrineGuardPlugin handle its reset password system (the link point to the module folder, but take also a look into form and model folders).



来源:https://stackoverflow.com/questions/11825623/how-to-do-password-reset-in-symfony-1-4-without-using-a-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!