PHP Classes

File: example_smarty_2.php

Recommend this page to a friend!
  Classes of Alfred R. Baudisch   AuriumForm   example_smarty_2.php   Download  
File: example_smarty_2.php
Role: Example script
Content type: text/plain
Description: More examples of AuriumForm and Smarty
Class: AuriumForm
Validate and output forms using HTML or Smarty
Author: By
Last change:
Date: 19 years ago
Size: 469 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');
$teste = addslashes('Hello World \\ " \' &');

$tpl->assign('teste', $teste);
$tpl->assign('erros_senha', $erros);
$tpl->display('example_smarty_2.tpl');