Code Comments
Programming Forum and web based access to our favorite programming groups.This is the record in the database field and is stored in a snippets table
hello my name if {$contact.name} its {smarty.server.SERVER_NAME}
the snippets/contact is assigned in php but the tags are not processes,
instead they are output as straight text as...
tpl code
{section name=s loop=$snippets}
<div class="snippet">{$snippets[s].snippet}</div>
{/section}
the output is
hello my name if {$contact.name} its {smarty.server.SERVER_NAME}
How do I make smarty "compile it ", is there a quick and dirty methid
I'm missing ??
tia
pete
Post Follow-up to this messageMessju kindly answered this question on IRC with the {eval} function
ta
;-))))))))
pete M wrote:
> This is the record in the database field and is stored in a snippets table
>
> hello my name if {$contact.name} its {smarty.server.SERVER_NAME}
>
> the snippets/contact is assigned in php but the tags are not processes,
> instead they are output as straight text as...
> tpl code
> {section name=s loop=$snippets}
> <div class="snippet">{$snippets[s].snippet}</div>
> {/section}
>
> the output is
> hello my name if {$contact.name} its {smarty.server.SERVER_NAME}
>
> How do I make smarty "compile it ", is there a quick and dirty methid
> I'm missing ??
>
> tia
>
> pete
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.