PHP Classes

File: example_smarty_1.php

Recommend this page to a friend!
  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: 17 years ago
Size: 534 bytes


Class file image Download

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);

For more information send a message to info at phpclasses dot org.