lightflowmark wrote:
> 
> A custom decorator (although you may be able to piece it together with the
> Label decorator and the HtmlTag decorator).
> 
> 
> One approach would be to extend the Label decorator; pass the URL of the
> image as an option to your extended label decorator and have it render the
> image tag.
> 
> There's probably a better way, but that will definitely work.
> 
> Have you seen Matthew's blog posts on form decorators?
> http://weierophinney.net/matthew/plugin/tag/decorators
> 
> 
> M
> 
> 

Yes, i did but still got a lot of confusion on how to use it properly. Right
now i disabled escaping for that field and directly appended the image to
the label value. But that doesn't look very 'clean', i think i'll try that
approach with decorators.

Seems a bit like headache to have to write classes and 'extend' in order to
do such simple and quick things. But never mind - that's just me
complaining. Anyways - thanks for your reply, i'll try this to make my form
more clean.

Dmitry.

-- 
View this message in context: 
http://www.nabble.com/A-quick-question-on-radio-buttons-%28again%29-tp24295152p24344178.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to