|
|||
|
Hello,
I'm quite new to the zend framework so excuse me if I ask simple questions, you can believe me, they are not simple for me ![]() I'm trying to make a zend form that lets you register. I have the form itself and it works just fine, except for one thing. The form I want has to have a user image (avatar kind of thing) that he can change. I already found a way to upload the avatar but I haven't found something to display it on that page, right before the upload button... If someone could give me some pointers it would be great! Google didn't help much ![]() |
|
|||
|
I found a solution. Basicly you can do this:
$imageTag = new Zend_Form_Decorator_HtmlTag(); $imageTag->setOption('openOnly', true); $imageTag->setTag('img'); $imageTag->setOption('src', 'buh.gif'); $imageTag->setOption('placement', Zend_Form_Decorator_Abstract::PREPEND); and then use addDecorators(array($imageTag)); on whatever form element you want. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|