开发者

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

开发者 https://www.devze.com 2023-01-05 11:41 出处:网络
I have Z开发者_StackOverflowend_Form empty values problem: My View: I print only part of form elements, because that I not doingecho $this->form

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

精彩评论

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

关注公众号