Location: PHPKode > scripts > AuriumForm > auriumform/example_smarty_2.php
<?php

require_once 'smarty/libs/Smarty.class.php';

/**
* Templates
*/
$tpl =& new Smarty;
$tpl->debugging      = false;
$tpl->template_dir   = './templates/';
$tpl->compile_dir    = './templates_c/';
$tpl->caching        = false;
$tpl->compile_check  = true;

$erros = array('Fill the fields');
$teste = addslashes('Hello World \\ " \' &');

$tpl->assign('teste', $teste);
$tpl->assign('erros_senha', $erros);
$tpl->display('example_smarty_2.tpl');
Return current item: AuriumForm