You are here: compiling database fields « Smarty Templates Posts « IT news, forums, messages
compiling database fields

Posted by pete M on 09/30/91 11:13

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация