Jurien, back to your original post, generally what I do is I set the "default" meta tags early in the application (usually during bootstrap) and actions/views can replace them if necessary by providing new values using the normal view helper methods. This means my layout just has a simple echo and no logic:
<?php echo $this->headMeta(); ?> As for handling this in the bootstrap, I've written a nifty "meta" bootstrap resource plugin that allows me to configure each environment with different defaults. Feel free to check it out here: http://pastie.org/1504249 My configuration for this resource looks like this: ; Meta data resources.meta.names.title = "Virgen Technologies" resources.meta.names.description = "Web technologies and stuff!" resources.meta.names.keywords = "php mysql apache zend framework" resources.meta.httpEquivs.expires = "Wed, 26 Feb 1997 08:21:57 GMT" resources.meta.httpEquivs.pragma = "no-cache" resources.meta.httpEquivs.Cache-Control = "no-cache" resources.meta.httpEquivs.Content-Type = "text/html;charset=utf-8" resources.meta.httpEquivs.Content-Language = "en-US" I hope this helps! -- *Hector Virgen* Sr. Web Developer http://www.virgentech.com On Thu, Jan 27, 2011 at 3:12 PM, Wil Moore III <[email protected]>wrote: > > > weierophinney wrote: > > > > the storage into Zend_Registry. I'm not sure how much any of this is > > really relevant to the need you explained in a previous post, however... > > > From what I know of these helpers, it is due to the initial design that is > limiting his use case. > > The registry (it doesn't have to be a global static, it could have been an > object instance) would have been better since it is an ArrayObject > (implements offsetExists); however, at a minimum, the the helpers could > have > extended ArrayObject and it would have been all good. > > > ----- > -- > Wil Moore III > > Why is Bottom-posting better than Top-posting: > http://www.caliburn.nl/topposting.html > > DO NOT TOP-POST and DO trim your replies: > http://linux.sgms-centre.com/misc/netiquette.php#toppost > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/Search-for-existing-value-in-headMeta-tp3237161p3243407.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
