Re: php smarty example
- From: "Drakazz" <vykintas.narmontas@xxxxxxxxxxxxxx>
- Date: 17 May 2006 23:18:50 -0700
Why double-post?
$smarty = new Smarty();
$smarty->assign("test","This is a test and should work!");
$smarty->compile_dir="compile";
$smarty->template_dir = "templates"
$smarty->display("main.tpl");
then, in templates/main.tpl , do this:
<p>A new message: <span style="color:red;">{$test}</span></p>
:)
This si very simple anyway
.
- Follow-Ups:
- Re: php smarty example
- From: shyren
- Re: php smarty example
- References:
- php smarty example
- From: varghese
- php smarty example
- Prev by Date: Re: host websites on subdomain in intranet?
- Next by Date: Re: Smarty error: problem writing temporary file
- Previous by thread: php smarty example
- Next by thread: Re: php smarty example
- Index(es):