in Zend FW when I add description meta tag in loop using helper:
$this->headMeta()->appendName('DESCRIPTION', $des);
i got multi meta tags in my html head.
<meta name="DESCRIPTION" content="des1" />
<meta name="DESCRIPTION" content="des2" />
how can i prevent it and have something like below in my html head:
<meta name="DESCRIPTION" content="des1 des2" />
Extend you own head view helper callable like this.
and offer a method to push the values to headMeta
Other option is to use placeholders.
You can use this function to get your metas as an array (I put it in /application/plugins/common.php you can put it where you want) :
and to call it when you want and as you want :
Insted of
have in your layout