【发布时间】:2012-02-21 09:40:14
【问题描述】:
我有一个登录表单,想在里面添加一个“丢失密码”链接。我发现你可以使用描述来做到这一点。但我现在已经开始更改所有内容以使用路由,并希望将其用于忘记密码链接。有没有机会这样做?我找不到解决方案,你们中的任何人都知道该怎么做吗?
$password = new Zend_Form_Element_Password('login_password', array(
'label' => 'Password',
'description' => '<a href="account/lost">Forgot Password ?</a>',
'required' => true,
));
$password->getDecorator('description')->setOptions(array('escape' => false, 'placement' => 'APPEND'));
【问题讨论】:
标签: zend-framework