zend framework - Zend_Tag_Cloud - Set options -


How can I set a minFontSize property at zend_Tag_Cloud? It looks like this at the moment, but I get an error:

Decorator, Zend_Tag_Cloud_Decorator_Tag

  $ cloud = newZend_Tag_Cloud is not an example (Array ('Tag' = & gt; array (array ('title' = & gt; 'code', 'weight' => 50), array ('title' = & gt; 'Z Framework', ' Weight '= & gt; 100), array (' title '= & gt;' PHP ',' weight '=> 25))); $ Cloud- & gt; Settag Decorator (array ('minFontSize' => 20)); $ Cloud resonance;  

Try something like this:

  $ Cloud = new Zend_Tag_Cloud (array ('Tag' = & gt; array (array ('title' = & gt; 'code', 'weight' => 50), array ('title' => gt framework ',' Weight '' & gt; 100), array ('title' = & gt; 'PHP', 'weight' => 25), 'tag decorator' = & gt; array ('decorator' = ' & Gt; 'HtmlTag', 'options' = & gt; array ('html tag' => array), 'fontSizeUnit' = & gt; 'px', 'minFontSize' => 20))) ;  

Comments

Popular posts from this blog

MVP, design question -

excel - Populate list via a bi-Condition -

iphone - How do I make a UIPickerView in a UIActionSheet -