Basic question about insert
| From: | Luc Saint-Elie | Date: | Wed, 16 Jul 2003 18:23:48 +0000 |
| Subject: | Basic question about insert | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9903@lists.php.net to get a copy of this message | ||
Hello,
I have a smarty little app with $smarty->cachiing=true;
On the front page I want to display a specific greeting sentence if the user comes from a search engine so I did :
1- a insert_Greetings($comefrom) function that returns a greeting sentence based on the search engine name (detected from $_SERVER['HTTP_REFER']
This function is in a separate file included in my index.php file
2 in my template :
{insert name="getGreeting" comefrom=$smarty.server.HTTP_REFERER}
This doesn't work.
The same fucntion used in a classical way without caching enabled works well so its not a HTTP_REFER detection problem
Where did I do wrong ?
Luc