passing URL to template

From: Date: Wed, 19 Mar 2003 21:05:56 +0000
Subject: passing URL to template
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8756@lists.php.net to get a copy of this message
Hello: Can't get the following to work: (new to useing Smarty ) ***myfile.php*** require (the necessary setup file) $smarty = new Smarty_Smarty_newapp; $smarty->caching = true; $smarty->force_compile = true; $smarty->debugging = true; $smarty->php_handling = SMARTY_PHP_ALLOW ; $smarty->assign('title','mytitle'); $smarty->assign('loginURL' ,'$sess->purl(URL . ?login=1&page=shop/index'); $smarty->display('header.tpl'); ***header.tpl*** <area shape="poly" coords="170,30,252,30,252,48,170,48,170,30" href= {$loginURL}> The first part of the URL ($sess->purl(URL .) doesn't get executed as php in the template..... I tried {php}{$loginURL}{/php} in template file ....still didn't work.. Any help or direction appreciated. Thanks, Bob P

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