Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zend form - Element Label in two line

I am extremely new to Zend Framework, In registration form, i need label text in two line. For Example:- In the case First name, I need to display like below:

First
Name:

How can i implement this? Please anyone help me!!!

like image 551
user588575 Avatar asked Dec 12 '22 16:12

user588575


1 Answers

By default, input fields labels are being escaped by Zend_View_Helper_FormLabel. However, you can easy switch this off:

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

This way you can use labels as e.g. $yourTextInputElement->setLabel('First <br/> name');.

like image 106
Marcin Avatar answered Jan 11 '23 22:01

Marcin