adwinwijaya wrote:
Hello php-general,
Currently I use Smarty for page templating system, and I am happy with
this. But is there any way to produce a file with smarty instead of
displaying it as a page.
I want to use this as email templating, I want to create an email and
I have a template like smarty and I want to assign it just like
smarty. Is there any templating system that suitable for me ?
Example:
[email.tpl]
Hello {$user},
Welcome to {$name_of_web}
regards,
{$system_administrator}
[email.php]
$email->assign('user', $user);
$email->assign('system_administrator', $system_administrator);
$email->assign('name_of_web', $name_of_web);
$message = $email->fetch('/templates/email.tpl');
mail($to,$subject,$message);
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php