开发者

Zend Framework - How to place a text right to the text box?

How t开发者_如何学JAVAo place a text right to the text box in Zend Framework? I am using Zend_Form component in my project. I want to display a small text right side of text box. For example I want to display an example phone Number to the right side of the phone number text box field. How can I do this? Please help me!!!!


Use element's description

$element = $this->createElement('text', 'phone')
                ->setLabel('Phone Number:')
                ->setDescription('ex: 123-456-7890');
$this->addElement($element);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜