1

I'm currently working Zend framework and placing Zendx_Jquery_Form in Jquery Dialog Container

Just wanted to know is there a way to insert html code (so i can put a picture in there) to the Jquery Dialog Container in zend framework.

This is my code to declare my Zend form in Jquery Dialog Container

 public function setSubFormDecorators(Zend_Form_SubForm $subForm)
    {

           $subForm->setDecorators(array(
                       'FormElements',
                        'Form',
                             array('DialogContainer', array(
                                 'title' => 'MY FORM',
                                 'id' => 'tabContainer',
                    'jQueryParams' => array(

                                 'width' => auto,
                                 'height' => auto,
                                 'draggable' => true,
                                 'resizable' => false,
                                 'position' => 'middle',
                                 'zIndex' => 80
                    ),
               )),
            ));
        return $this;

    }

Thanks so much in advance!

user648198
  • 2,004
  • 4
  • 19
  • 26

1 Answers1

0

As described in the documentation;

The only use for the Dialog Container in Zend Form context is to wrap itself around a form and display it in a dialog.

You could either create the form without the DialogContainer, and provide the form html to the DialogContainer view helper and throw your own html/images into the mix

or

you could use the DialogContainer in the Zend_Form context as a container, and add the image as a form element, as Zend_Form_Element_Image.

Niklas
  • 29,752
  • 5
  • 50
  • 71