3ehrang
3ehrang

Reputation: 629

create tag block in zend

Hi How can I define and use in my phtml file custom tag block like this:
''
''
for example this tag create the list of all entries and show the title of them?

Upvotes: 0

Views: 257

Answers (1)

homelessDevOps
homelessDevOps

Reputation: 20726

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;

Upvotes: 1

Related Questions