Insert Function
| From: | MishY | Date: | Wed, 24 Apr 2002 12:09:59 +0000 |
| Subject: | Insert Function | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3861@lists.php.net to get a copy of this message | ||
Hey,
This is the insert line I'm using to call a poll into the web page :
{insert name="newest_booth" script="file:c:\program
files\apache\htdocs\poll\booth.php"}
This works great when caching is turned off.
When caching is turned on the poll shifts from where it is supposed to
reside to the top of the page above ALL html. I also then start getting
smarty errors :
Warning: Smarty plugin error: [in file:c:/program
files/apache/htdocs/templates/header.tpl line 235]: could not load plugin
file c:\program
files\apache\htdocs\templates/plugins/insert.newest_booth.php in c:\program
files\apache\htdocs\templates\Smarty.class.php on line 1647
Fatal error: Call to undefined function: () in c:\program
files\apache\htdocs\templates\Smarty.class.php on line 1077
Any idea what's going wrong ?
Thanks :-)