|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ewebzerg Smarty n00b
Joined: 27 Apr 2003 Posts: 4
|
|
Back to top |
|
Wom.bat Smarty Pro
Joined: 24 Apr 2003 Posts: 107 Location: Munich, Germany
|
Posted: Sun Apr 27, 2003 10:31 am Post subject: |
|
|
use a cache-id like so:
$smarty->display("template.tpl", $_REQUEST["id"]);
I'd strongly recommend that you validate $_REQUEST["id"] before, and set a valid value if it's invalid... otherwise, someone can easily fill your server / quota by calling the URL with random "id" parameters
read http://smarty.php.net/manual/en/caching.php
there you can find everything you might want to know (it's a good idea to read the documentation _first_ anyway ) |
|
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
|