tags:

views:

15

answers:

1

Hi,

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

+2  A: 

You have missed an echo.

<form  method="<?php echo $this->escape($this->form->getMethod()); ?>" >
erenon