Re: [SMARTY] Multiple $_GET
| From: | Monte Ohrt | Date: | Thu, 18 Dec 2003 22:47:26 +0000 |
| Subject: | Re: [SMARTY] Multiple $_GET | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10722@lists.php.net to get a copy of this message | ||
Use the entire URL instead of a single GET parameter to formulate your
cache_id. example (using Apache):
$smarty->display('index.tpl', md5($_SERVER['REQUEST_URI']));
This will result in a separate cached page for every unique URL. md5()
is used as a safeguard to keep the directory name for the cache file
short.
On Thu, 2003-12-18 at 16:26, UpFront Technology wrote:
> Hello,
>
> I know that smarty can handle caching of a single $_GET parameter, but can
> it handle MULTIPLE from the same URL?
>
> ex. www.photos.com?cid=1$photo=3
>
>
> thanks
> Joe