I want to dynamically add metddata in the HTML-header. There are tags that have to be on every site. These are added in a default-parent-controller. But what about the child controllers? Currently I have a loop in the view an add the tags in the parent-controller in the initialize action via
$this->view->myMetaTags = $myMetaTags;
But when I want to add some tags in the child-controller the loop is already filled with the parent tags.
I thought about an eventsmanager on the view with the method beforeRender. I that an acceptable way and how is this done?