Zend form - Elementary inscription in two lines

I am extremely new to the Zend Framework, in the registration form I need text in two lines. For example: - In the case of the first name, I need to display as shown below:

First
Name:

How can i implement this? Please help me!

+3
source share
3 answers

By default, input field labels are escaped with Zend_View_Helper_FormLabel. However, you can easily disable this:

$yourTextInputElement->getDecorator('label')->setOption('escape', false);

This way you can use tags, for example. $yourTextInputElement->setLabel('First <br/> name');.

+11
source

How about this great solution?

http://jsfiddle.net/J67GD/

+1
source

, , Description ZF.

Yanick CSS , , .

0

Source: https://habr.com/ru/post/1790138/


All Articles