开发者

Zend_Form empty values problem -html result: <form action="" method="">

I have Z开发者_StackOverflowend_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


You have missed an echo.

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜