Php - Smarty Help

Discussion in 'PHP' started by buzzgal, Feb 1, 2010.

  1. #1
    I am using smarty template system , I just want to know can I include php tags between template file (tpl file)?

    Thanks
     
    buzzgal, Feb 1, 2010 IP
  2. CuBz

    CuBz Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This should work

    <?php include('file.php'); ?>
    PHP:
    OR

    <?php include_once("file.tpl"); ?>
    PHP:
     
    CuBz, Feb 1, 2010 IP
  3. Bec0de

    Bec0de Well-Known Member

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    115
    #3
    Bec0de, Feb 1, 2010 IP
  4. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To be honest there's nothing you can do with php that you can't with smarty. You can always build filters and modifiers to better divide the content and the logic
     
    JAY6390, Feb 1, 2010 IP
  5. Nei

    Nei Well-Known Member

    Messages:
    106
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    170
    #5
    But in smarty all this things are already done. As for me smarty is quite convenient.

    P.S. Sorry for offtop.
     
    Nei, Feb 2, 2010 IP