0

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
  • Why do you have an empty label? Commented Jul 4, 2010 at 14:31
  • I add value to label, thanks erenon Commented Jul 5, 2010 at 17:17

1 Answer 1

2

You have missed an echo.

<form  method="<?php echo $this->escape($this->form->getMethod()); ?>" >
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.