ZF-7638: AccordionContainer::getElementHtmlTemplate()

Description

Valid html template for current UI accordion is:

$this->_elementHtmlTemplate = '

%s

%s

';

Without

<

h3> tag UI is broken with default settings... Also it would be great if you provide functionality for changing

<

h3> tag or elementHtmlTemplate (via decorators or something else).

Comments

Verified here on 1.9.2 as well. Please commit this simple change.

Fixed in trunk and merged into 1.9 release branch. Added way to change HTML Template:


    public function testAccordionSetHtmlTemplate()
    {
        $this->view->getHelper('accordionContainer')->setElementHtmlTemplate("

%s

%s

"); $this->view->accordionPane("container1", "foo", array('title' => 'foo')); $accordion = $this->view->accordionContainer("container1", array(), array()); $this->assertEquals( '

foo

foo

', $accordion ); }