假如用户登录后跳转到以下页面,既(可以购物页面)
category.php?id=1 假如用户未登录跳转到user.php(登录页面)我大概只知道当
  {if $smarty.session.user_id gt 0}  
           category.php?id=1
{else}
user.php
{/if}但就是知道在哪个地方或页面加? 请教!谢谢 !