from a smarty variable to a php string... how to do it?????

Discussion in 'Programming' started by SedNaX, Jan 14, 2007.

  1. #1
    My head just exploded, I'm busy for several hours now to do one simple thing...

    I want to turn the smarty variable

    {$cat.ID}
    Code (markup):

    into

    $id
    Code (markup):
    in a .tpl file. I just don't know how to do it... please help me :)
     
    SedNaX, Jan 14, 2007 IP
  2. vvoole

    vvoole Peon

    Messages:
    38
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    it is incomprehensible a bit what exactly do you mean. Can you show whole part of this code?
     
    vvoole, Jan 14, 2007 IP
  3. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #3
    You can try using this in the .tpl file.

    {php}$id{php}
    Code (markup):
     
    Colleen, Jan 14, 2007 IP