如何在 Zend_Tag_Cloud 上设置 minFontSize 属性?目前看起来像这样,但我收到一个错误:
装饰器不是 Zend_Tag_Cloud_Decorator_Tag 的实例
$cloud = new Zend_Tag_Cloud(
array(
'tags' => array(
array('title' => 'Code', 'weight' => 50),
array('title' => 'Zend Framework', 'weight' => 100),
array('title' => 'PHP', 'weight' => 25)
)
)
);
$cloud->setTagDecorator(array('minFontSize' => 20));
echo $cloud;