SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smarty Template help....

    well, I want to install smarty template engine on my site, but I can't find my php_include path or how to make a directory constan. Please help me.

  2. #2
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The easiest way (in my opinion) to find the include path is to make a PHP file with the function phpinfo(); in it. Upon viewing it, ou'll get a big display including your include path and 100s of other details that come in handy .
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  3. #3
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Moved to a more appropriate forum

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  4. #4
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    look in the QUICKSTART file that came with the Smarty package, it tells you how to define your own SMARTY_DIR constant

    and the docs at http://smarty.php.net/docs.php help a lot... get the downloadable version especially...

  5. #5
    SitePoint Guru marcel's Avatar
    Join Date
    Nov 2000
    Posts
    920
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    OOP and classes

    Maybe I'm a little slow. But I gave up on Smarty twice already.

    Something is telling me I need to learn OOP and classes.

    I don't know how to use classes and OPP. Would a knowledge of OOP and classes help a great deal ? Should I try to learn them first ?

  6. #6
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you definitely don't have to know OOP to use Smarty... yes Smarty is essentially a class but you don't have to have knowledge of OO to get it to work...

    the best place to start would be the QUICKSTART and the downloadable manual (http://smarty.php.net/download-docs.php)...

  7. #7
    SitePoint Addict richard_h's Avatar
    Join Date
    May 2002
    Location
    London
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I go with the define option:

    PHP Code:
    define('SMARTY_DIR','C:/path/to/Smarty/');

    // don't forget the trailing slash! 


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
  •