This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Adding Meta Tag in Action

Notes and reports about symfony 1.0.x stable

Adding Meta Tag in Action

by sps.srk » Mon May 30, 2011 11:02 am

Hello There,

I am very new in Symfony, can some one please advise me that how I can add give below meta tag in action in symfony.
<META HTTP-EQUIV="expires" CONTENT="Thu, 07 Apr 2011 08:51:10 GMT">

I am trying to like

$this->getResponse()->addMeta('expires','CONTENT="Thu, 07 Apr 2011 08:51:10');

or

$this->getResponse()->addHttpMeta('expires', 'CONTENT="Thu, 07 Apr 2011 08:51:10'); . AM I doing right here??

Thanks
Santosh
sps.srk
Junior Member
 
Posts: 3
Joined: Mon May 30, 2011 10:55 am

Re: Adding Meta Tag in Action

by halfer » Mon Jun 13, 2011 12:01 pm

Do they work? Use them if they do ;)

Failing that, you can always add one manually in your layout.php file, say depending on the result of a parameter in $sf_params->get('name') etc.
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: Adding Meta Tag in Action

by sps.srk » Tue Jun 21, 2011 4:47 pm

Thank you very much for your support
sps.srk
Junior Member
 
Posts: 3
Joined: Mon May 30, 2011 10:55 am