Adding a horizontal line after a Zend Framework form element

in

In a Zend_Form object, if you want to separate a few fields visually, here's how you can do it using a horizontal line view helper

<?php


class Personal_Decorator_HrSeparator extends Zend_Form_Decorator_HtmlTag

{

protected $_placement = self::APPEND;

protected $_tag = 'hr';

}

$field = new Zend_Form_Element_Text('fieldName');


$field->addDecorator(new Personal_Decorator_HrSeparator());

MOST RECENT VIDEO TUTORIALS