RE: [SMARTY] Using Javascript to Call Smarty?

From: Date: Wed, 12 May 2004 15:45:34 +0000
Subject: RE: [SMARTY] Using Javascript to Call Smarty?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11384@lists.php.net to get a copy of this message
Maybe I'm reading your question wrong, but... Just because a cookie may be written with a client-side JavaScript does not prevent PHP from being able to find it in $_COOKIE (on the next page refresh), so I would put the isLoggedIn test inside your PHP, not your JavaScript. You have to include your Smarty tpl on the server side before the output is sent to the browser. Javascript code doesn't run until the browser has already downloaded the (rendered HTML) page from the server, after exectuing all the PHP & Smarty markup. HTH- Geoff

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