Write hyperlink inside the Zend Form?

后端 未结 5 1550
无人及你
无人及你 2020-12-29 07:50

I am using Zend-Framework in my project. I made a login form using the Zend Form that contains the User Id and Passwords fields with a submit button. Everything is

5条回答
  •  甜味超标
    2020-12-29 08:32

    Try this:

    $passwordElement->setDescription('Forgot password?');
    $passwordElement->getDecorator('Description')->setOption('escape', false);
    

    Description decorator will add this text beside your field.

提交回复
热议问题