Hi......
i've tried to create zend dojo form in Action and it's work nicely
(using ZF 1.7.1), for example:
function dojoformAction() {
Zend_Dojo::enableView($this->view);
$form = new Zend_Dojo_Form();
$form->setMethod("post");
$form->setAction("save")
->setName("myform");
$form->addElement('TextBox', "location",
array("label"=>"Location",
'propercase' => 1
));
$form->addElement('SubmitButton',
'submit',array('label'=>'Submit'));
$this->view->form = $form;
}
and echoing in view script;
But.. how to create zend dojo form in View script? I want "free form"
placement of elements.. and i can't see $view->form->captureStart()
method
for example, in view:
<? $this->form()->start() ?>
<br><br><?= $this->textbox("text1", "value", array()) ?>
<br><br><?= $this->textbox("text2", "value", array()) ?>
<br><br><?= $this->submitbutton("submit") ?> <?=
$this->submitbutton("cancel") ?>
<? // pseudo
$this->form()->end();
$this->form()->prefillDefaultValues( $this->rows );
?>
Is this possible..? thanks
--
Kamus Online - http://kamus.landak.com/