Location: PHPKode > scripts > AuriumForm > auriumform/example_smarty_1.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');

$tpl->assign('estados', array('PR'=>'Paraná','SP'=>'São Paulo','AM'=>'Amazonas','RS'=>'Rio Grande do Sul','MG'=>'Minas Gerais','PA'=>'Pará'));
$tpl->assign('erros_senha', $erros);
$tpl->display('example_smarty_1.tpl');
Return current item: AuriumForm