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 |