Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Zend framework Zend_Tag_云-设置选项_Zend Framework_Zend Tag - Fatal编程技术网

Zend framework Zend_Tag_云-设置选项

Zend framework Zend_Tag_云-设置选项,zend-framework,zend-tag,Zend Framework,Zend Tag,如何在Zend_Tag_Cloud上设置minFontSize属性? 目前看起来是这样,但我得到一个错误: Decorator不是Zend_Tag_Cloud_Decorator_Tag的实例 试着这样做: $cloud = new Zend_Tag_Cloud( array( 'tags' => array( array('title' => 'Code', 'weight' => 50), array

如何在Zend_Tag_Cloud上设置minFontSize属性? 目前看起来是这样,但我得到一个错误:

Decorator不是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)
        ),
        'tagDecorator' => array(
            'decorator' => 'HtmlTag',
            'options' => array(
                'htmlTags' => array(),
                'fontSizeUnit' => 'px',
                'minFontSize' => 20
            )
        )
    )
);
 $cloud = new Zend_Tag_Cloud(
    array(
        'tags' => array(
            array('title' => 'Code', 'weight' => 50),
            array('title' => 'Zend Framework', 'weight' => 100),
            array('title' => 'PHP', 'weight' => 25)
        ),
        'tagDecorator' => array(
            'decorator' => 'HtmlTag',
            'options' => array(
                'htmlTags' => array(),
                'fontSizeUnit' => 'px',
                'minFontSize' => 20
            )
        )
    )
);