I'm trying to insert dynamic meta tags using CHtml::metaTags method, but it is inserted above the <head> tag rather than within the tag. As well, the html is outputted in reverse to conventional formats.
<meta content="this is a test" name="description"/>
vs
<meta name="description" content="this is a test" />
I’m just using a statement like
echo CHtml::metaTag(‘this is a test’,‘description’)
Thanks for your reply, but I don't see how this could be updated dynamically if it is inserted in a layout file. What if I want the content to be different for each view that is tied to one layout?