Login   Register  
PHP Classes
elePHPant
Icontem

File: example_smarty_1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Alfred R. Baudisch  >  AuriumForm  >  example_smarty_1.php  >  Download  
File: example_smarty_1.php
Role: Example script
Content type: text/plain
Description: Examples of AuriumForm and Smarty
Class: AuriumForm
Validate and output forms using HTML or Smarty
Author: By
Last change:
Date: 9 years ago
Size: 534 bytes
 

Contents

Class file image Download
<?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');