Results 1 to 2 of 2

Thread: Include session variables in php tags

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2

    Default

    Hi,

    You must first enable {php} tags in template by adding the following code in vShare/include/vshare.php file.
    Code:
    $smarty->allow_php_tag = true;
    After
    Code:
    $smarty->caching = 0;
    Now you can use php session variables within {php} tags in templates.
    Code:
    $login = $_SESSION['USERNAME'];
    Try this.
    Last edited by vshare2; 01-05-2012 at 05:06 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •