Im trying to understand the idea of decoraters.

This is not an idea, it is a design pattern: http://en.wikipedia.org/wiki/Decorator_pattern

however my textareas, checkboxes and input textbox are still not showing next to their label .

You can use CSS: (example)

dl {
    margin: 1em 0;
    padding: 0;
}

dt {
    clear: left;
    float: left;
    width: 200px;
    margin: 0;
    padding: 5px;
    font-weight: bold;
}

dd {
    float: left;
    width: 300px;
    margin: 0;
    padding: 5px;
}

Or remove the definition list: (example)

$formDecorators = array(
    'FormElements',
    'Form',
);

$elementsDecorators = array(
    'ViewHelper',
    'Errors',
    array(
        // Decorator name
        'Description',
        // Decorator options
        array(
            'tag'   => 'p',
            'class' => 'description',
        ),
    ),
    'Label',
    array(
        // Decorator name
        'HtmlTag',
        // Decorator options
        array(
            'tag' => 'div',
        ),
    ),
);

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to