开发者

echo an element in zend_Form

ok i have a users controller with add/edit/delete/view actions now on edit i get all the info from DB and i user prepopulate function to auto fill the form, what i'm trying to do is actually echo a variable in zend_form, take an element and echo it, for example first_name i want to do "echo $thi开发者_如何学JAVAs->first_name" or whatever the command is in my zend_fomr, i have been searching for a an answer for days .. could not find anything, is even possible, if somebody knows please give me a hint.


To echo each element manually use

$form = $this->form;
echo $form->email->renderViewHelper ();

in the corresponding view file to customize your form, so do not call just

echo $form;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜