Re: [SMARTY] Basic question about insert
| From: | Luc Saint-Elie | Date: | Wed, 16 Jul 2003 22:25:47 +0000 |
| Subject: | Re: [SMARTY] Basic question about insert | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9909@lists.php.net to get a copy of this message | ||
Hello,
Got it, I didn't noticed the array structure for insert.
It works now.
Luc
At 20:23 16/07/2003 +0200, Luc Saint-Elie wrote:
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