public function getTag($post, $separator = ' , ')
{
$tagLinks = array();
if (!empty($post['BlogTag'])) {
foreach ($post['BlogTag'] as $tag) {
$url = $this->request->params['Content']['url'] . 'archives/tag/' . $tag['name'];
$tagLinks[] = $this->BcBaser->getLink($tag['name'], $url);
}
}
if ($tagLinks) {
return implode($separator, $tagLinks);
} else {
return '';
}
}