Zend Framework Default Form

Hi, I am using the zend framework for my application, what I want to do is set the default value for Zend_form_element_text

I want the .phtm page to already have a visible default value in the text area. The user can save this value or change it.

I am trying to do $ name-> setValue but it does not work ...

+3
source share
1 answer

use setDefaults form

$form->setDefaults(array('name' => 'some value'));
+4
source

All Articles