RE: [SMARTY] Another Newbie Question

From: Date: Thu, 03 Oct 2002 23:22:58 +0000
Subject: RE: [SMARTY] Another Newbie Question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6092@lists.php.net to get a copy of this message
I'd have to consult the docs to be sure, but what I think you can do is handle the browser detection before you call $smarty->display, then set the cache file to two separate caches, then tell smarty to load the right cache based on which browser a user is using. Rtfm! (so I don't have to) :) -- Josh -----Original Message----- From: Rich Gray [mailto:richardgray@onetel.co.uk] Sent: Friday, October 04, 2002 2:17 AM To: Smarty-General@Lists. Php. Net Subject: [SMARTY] Another Newbie Question Hi all Another very basic question here... Smarty v2.3.0 PHP v4.2.3 Win2K Advanced Server Apache v1.3 I have a header template that is used for most pages. With this site the PHP script sniffs the browser and if it is an IE version it will insert another style/CSS stylesheet HTML <head> line into the header template... So how does this scenario work with Smarty? i.e. Template is built and compiled by the first visitor (A) who uses Mozilla so no stylesheet code is inserted, visitor (B) with IE arrives shortly afterwards and Smarty recompiles the header with the extra stylesheet... then visitor A goes to another page and now gets an IE CSS header??? TIA RIch -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#6092) next »