 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
play75010 Smarty Rookie
Joined: 21 Aug 2009 Posts: 7
|
Posted: Wed Jul 11, 2012 6:14 am Post subject: How to add a header() directive |
|
|
Hello.
I'm working on a facebook app and I need to send extra header information when on IE6, IE7 or IE8.
Basically, facebook launches the app in an iframe and I need to send the following header directive :
header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"');
I've done that in the code which calls smarty->display(...) but I'm not sure it is processed.
What's the best way in smarty to ensure that the header(...) is actually processed.
PS: I'm using SMARTY 2.6.26 but would of course upgrade if needed.
Thank you for your help. |
|
| Back to top |
|
douglassdavis Smarty Junkie
Joined: 21 Jan 2008 Posts: 524
|
Posted: Wed Jul 11, 2012 11:55 am Post subject: Re: How to add a header() directive |
|
|
You have to check that from the client (browser).
The way I do it is:
Download firebug and install, activate firebug, load the page, go to the net tab, click the + sign by that page, click the headers tab. |
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|