Reputation: 25807
I have Zend_Form empty values problem:
My View: I print only part of form elements, because that I not doing echo $this->form
<form method="<?php $this->escape($this->form->getMethod()); ?>" >
<label> Title</label>
<?php
echo $this->form->title;
?>
<label>Body: </label>
<?php echo $this->form->body; ?>
</form>
html result:
<form method="">
instead
<form method="post">
thanks
Upvotes: 0
Views: 373
Reputation: 19118
You have missed an echo.
<form method="<?php echo $this->escape($this->form->getMethod()); ?>" >
Upvotes: 2