开发者

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

开发者 https://www.devze.com 2023-01-19 17:38 出处:网络
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

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

精彩评论

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