Extend your own helper in the form of a header, called this way.
$this->headDescription($stringToAttach);
and suggest a method for moving values ββin headMeta p>
$this->headDescription()->pushToHeadMeta(); // internal call like this $this->view->headMeta('description', $this->getConcatedDescription());
Another option is to use placeholders.
//in view index.phtml $this->placeholder('description') ->append($desc1); //in view other.phtml $this->placeholder('description') ->append($desc2); // in layout echo $this->headMeta('description', $this->placeholder('description'));
source share