-
smarty templates
How to use smarty templates?
Any tutorial?
-
SitePoint Zealot

easy stuff but don't know a tutorial..
check out this: http://smarty.php.net/manual/en/inst...arty.basic.php
smarty is a class that needs to be initialized.. then you can assign variables by doing:
$smarty->assign('test', 'this is a test');
and you can call the templates like:
$smarty->display('test.tpl');
in test.tpl you can refer to the assigned variable like:
{$test}
good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks