How to change meta tags in zend framework layout
问题 So I have some default meta tags on layout.phtml set using $this->headTitle() and $this->headMeta()->appendName() and is echoed at layout.phtml's header My question is: How do I change those default meta tags from the view file such that they are replaced? I tried using: $this->headMeta()->appendName() or setName() Instead of replacing the old default meta tags, it would create an entirely new meta tag. How can I replace them? 回答1: I would recommend setting a view variable for the keywords.