> This will give you a comma-separated list of tags:
>
> <?php
> foreach($data as $note) {
>   // ...
>   echo implode(', ', Set::extract($note['Tag'], '{n}.tag'));
>   // ...}
>
> ?>
>
> hth
> grigri

Thank you, works fine! But it seems that in this case I can't assign
link for each tag.
Another solution:

<?php if ($note['Note']['tags'] != null): ?>
<div id="post_tags">
<?php foreach($note['Tag'] as $tag): ?>
<span><?=$html->link($tag['tag'],'/tags/'.$tag['tag']); ?></span>
<?php endforeach; ?>
</div>
<?php endif; ?>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to