SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    smarty templates

    How to use smarty templates?

    Any tutorial?

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    The Netherlands
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    easy stuff but don't know a tutorial..

    check out this: http://smarty.php.net/manual/en/inst...arty.basic.php

    smarty is a class that needs to be initialized.. then you can assign variables by doing:

    $smarty->assign('test', 'this is a test');

    and you can call the templates like:

    $smarty->display('test.tpl');

    in test.tpl you can refer to the assigned variable like:

    {$test}

    good luck


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
  •