I grab this code from documentation and tried to reporoduce some result.
So, this is a code:
public function indexAction() {
                $form = new ZendX_JQuery_Form ( );
                $form->setDecorators ( array ('FormElements', array 
('AccordionContainer',
array ('id' => 'tabContainer', 'style' => 'width: 600px;', 'jQueryParams' =>
array ('alwaysOpen' => false, 'animated' => "easeslide" ) ) ), 'Form' ) );
                $form->setAction ( 'formdemo.php' );
                $form->setAttrib ( 'id', 'mainForm' );
                $form->setAttrib ( 'class', 'flora' );
                $subForm1 = new ZendX_JQuery_Form ( );
                $subForm1->setDecorators ( array ('FormElements', array 
('HtmlTag', array
('tag' => 'dl' ) ), array ('TabPane', array ('jQueryParams' => array
('containerId' => 'mainForm', 'title' => 'DatePicker and Slider' ) ) ) ) );
                
                $subForm2 = new ZendX_JQuery_Form ( );
                $subForm2->setDecorators ( array ('FormElements', array 
('HtmlTag', array
('tag' => 'dl' ) ), array ('TabPane', array ('jQueryParams' => array
('containerId' => 'mainForm', 'title' => 'AutoComplete and Spinner' ) ) ) )
);
                // Add Element Date Picker
                $elem = new ZendX_JQuery_Form_Element_DatePicker ( 
"datePicker1", array
("label" => "Date Picker:" ) );
                $elem->setJQueryParam ( 'dateFormat', 'dd.mm.yy' );
                $subForm1->addElement ( $elem );
                
                // Add Element Spinner
                $elem = new ZendX_JQuery_Form_Element_Spinner ( "spinner1", 
array ('label'
=> 'Spinner:' ) );
                $elem->setJQueryParams ( array ('min' => 0, 'max' => 1000, 
'start' => 100
) );
                $subForm1->addElement ( $elem );
                
                // Add Slider Element
                $elem = new ZendX_JQuery_Form_Element_Slider ( "slider1", array 
('label'
=> 'Slider:' ) );
                $elem->setJQueryParams ( array ('defaultValue' => '75' ) );
                $subForm2->addElement ( $elem );
                
                // Add Autocomplete Element
                $elem = new ZendX_JQuery_Form_Element_AutoComplete ( "ac1", 
array ('label'
=> 'Autocomplete:' ) );
                $elem->setJQueryParams ( array ('data' => array ('New York', 
'Berlin',
'Bern', 'Boston' ) ) );
                $subForm2->addElement ( $elem );
                
                // Submit Button
                $elem = new Zend_Form_Element_Submit ( "btn1", array ('value' 
=> 'Submit'
) );
                $subForm1->addElement ( $elem );
                $form->addSubForm ( $subForm1, 'subform1' );
                $form->addSubForm ( $subForm2, 'subform2' );
                
                $formString = $form->render ( $view );
        }

AFTER pointing url to the page, i am getting quite strange error:
Fatal error: Call to undefined method
Zend_Dojo_View_Helper_TabContainer::addPane() in
D:\wamp\www\singlescash\library\ZendX\JQuery\View\Helper\TabPane.php on line
72

I think i dont call any Zend_Dojo view helper in here? Or i do?
I am using Zend_dojo forms on web site, but not within this directory and
this controller
-- 
View this message in context: 
http://www.nabble.com/ZendX-Jquery-reports-Zend_Dojo-error----tp20682080p20682080.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to