Pass variable into Zend Form

cripreofiit

New Member
I have a zend form instantiated \[code\]$form = Form_Example();\[/code\]Now I want to pass an ID from my controller to my form.So I did this:\[code\]$form = Form_Example(array('id' => $id));\[/code\]Inside the form I try to call it through:\[code\]$this->id\[/code\]But it isn't there.Anybody knows how to get that id into the form?Thanks
 
Back
Top