passing URL to template - resolution
| From: | Bob Powers | Date: | Sun, 23 Mar 2003 17:32:19 +0000 |
| Subject: | passing URL to template - resolution | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8853@lists.php.net to get a copy of this message | ||
Hello: Posted on 3/19/03 relative to attempt to pass to the template a URL
of the form:
http://www.address/$sess->purl(URL
."?login=1&page=shop/index)"
Attempted form:
$smarty->assign('........',
and
$smarty->assign(array('........',
both resulted in url being echoed/printed to template page but not assigned
to variable.
The following form 'does' work:
$smarty->assign_by_ref('sess', $sess->purl);
$smarty->assign('login_suffix', '"?login=1&page=shop/index)"
*my.tpl*
{$sess}{$login_suffix}
Thought I'd post resolution in event it might be helpful for someone with
similar problem.
Thanks to those who responded.
bobp