ZF-10732: Zend_Tag_Cloud needs an example on how to use the decorator

Issue Type: Docs: Improvement Created: 2010-11-23T07:41:49.000+0000 Last Updated: 2012-11-20T21:37:32.000+0000 Status: Open Fix version(s): Reporter: Remi Woler (remi_woler) Assignee: None Tags: - Zend_Tag

Related issues: Attachments:


After the 'HTML Tag decorator' paragraph, there should be an example demonstrating how to use the decorator. The line in the opening ("an array containing the string 'decorator' and optionally an array 'options'") is ambiguous, and can easily confuse people.

Suggested example:

setDecorator(array('decorator'=>'HtmlTag', 'options'=>array('minFontSize'=>65, 'maxFontSize'=>150, 'fontSizeUnit'=>'%'))); ?> Optionally, an additional example can be provided showing how to set the decorator in the constructor.

Also, I believe it should be mentioned that only one Decorator is shipped with ZF, which is called 'HtmlTag' (this isn't mentioned at the moment at all). Additional decorators can of course be created by the developer.


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.