开发者

create tag block in zend

开发者 https://www.devze.com 2023-01-02 16:10 出处:网络
Hi How can I define and use in my phtml file custom tag block like this: \'\' \'\' for example this tag create 开发者_如何学Gothe list of all entries and show the title of them?You could use Zend Tag

Hi How can I define and use in my phtml file custom tag block like this:

''

''

for example this tag create 开发者_如何学Gothe list of all entries and show the title of them?


You could use Zend Tag for this requirement:

$cloud = new Zend_Tag_Cloud(array(

'tags' => array(
        array('title' => 'Code', 'weight' => 50,
              'params' => array('url' => '/tag/code')),
        array('title' => 'Zend Framework', 'weight' => 1,
              'params' => array('url' => '/tag/zend-framework')),
        array('title' => 'PHP', 'weight' => 5,
              'params' => array('url' => '/tag/php')),
    )
));

echo $cloud;
0

精彩评论

暂无评论...
验证码 换一张
取 消