PHP Classes

File: AuriumFormAndSmartyInstructions.txt

Recommend this page to a friend!
  Classes of Alfred R. Baudisch  >  AuriumForm  >  AuriumFormAndSmartyInstructions.txt  >  Download  
File: AuriumFormAndSmartyInstructions.txt
Role: Documentation
Content type: text/plain
Description: Instructions of how to integrate Smarty and AuriumForm
Class: AuriumForm
Validate and output forms using HTML or Smarty
Author: By
Last change:
Date: 11 years ago
Size: 1,333 bytes


Class file image Download
AuriumForm Smarty Integration
- Send the following files to your smarty/libs/plugins dir:

- Create the dir auriumform inside your smarty/libs/plugins/
and move to it the files class.auriumform.php and class.auriumformfields.php

- Open your Smarty.class.php and after:

class Smarty

add a break line and the code:
     * Where AuriumForm class will be Instantiated
    var $_AuriumForm;

It will look like:

class Smarty
     * Where AuriumForm class will be Instantiated
    var $_AuriumForm;

// continue the class here...

To run the examples, put the files
in a dir.
- Create the dir smarty and send smarty to it (after changed the things explained above)
- Create the dir templates and send example_smarty_1.tpl and example_smarty_2.tpl to it
- Create the dir templates_c and set write permissions to ir

Your dir structure will look like:
  | smarty files and folders here
  | example_smarty_1.tpl
  | example_smarty_2.tpl
  | (empty dir)
| example_smarty_1.php
| example_smarty_2.php