That's because Zend_Form#init() is run during object construction. You won't have access to the values yet.
What are you trying to accomplish? There might be another way. -- Hector On Mon, Apr 5, 2010 at 3:13 PM, eduardocury <[email protected]> wrote: > > Hello, this works in my controller: > > $this->_shippingRoute__FRM->populate(array(data)); > print_r($this->_shippingRoute__FRM->getValues()); // works (all data > retrieved) > > > But inside the class : > > class Default_Form_MyForm extends Zend_Form { > > public function init() > { > print_r($this->getValues()); //doesn't work (all data is blank, i get > the name of fields but data is empty) > } > > > Any ideas? > > Thanks > > -- > View this message in context: > http://n4.nabble.com/Zend-Form-get-populated-values-tp1752149p1752165.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
