Login   Register  
PHP Classes
elePHPant
Icontem

File: AuriumFormAndSmartyInstructions.txt

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  >  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: 2005-02-23 13:05
Size: 1,333 bytes
 

Contents

Class file image Download
AuriumForm Smarty Integration
----------------------------------
- Send the following files to your smarty/libs/plugins dir:
function.auriumform.php
function.auriumform_config.php
function.auriumform_open.php

- 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
example_smarty_1.php
example_smarty_2.php
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

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