The template I use for my wizard drivers:
<?php
/*
Flame Wizard Driver
File: _driver.inc.php
Last Update: Nov 2005
Author: Tom Atwell (klenwell@gmail.com)
SECTIONS:
1. Configurations
2. Stages
3. Review Arrays
4. DB Packages
5. Other Wizard Arrays
*/
/* CONFIGURATIONS *******************************/
// META
# name (inactive)
$wizard_name = 'name';
# directory for STAGES include files
$wizard_dir = 'dir';
// CONTROL ARRAYS
$STAGES = array();
$REVIEW = array();
$DB = array();
$TABLE = array();
// DATABASE
# DATABASE
$DB['name'] = 'db_name';
# TABLES
$TABLE = array
(
# ID/KEY => NAME
'ref' => 'table_name',
);
# WRITE ARRAYS
$DB_WRITE['table_name'] = array();
/*______________________________________________*/
/* STAGES ***************************************/
# to add a stage, paste line: $STAGES[] = 'FILE_NAME';
$STAGES[] = 'next_stage';
/*______________________________________________*/
/* REVIEW ARRAYS ********************************/
$REVIEW['group'] = array
(
'field_name'
);
/*______________________________________________*/
/* DATABASE ARRAYS ******************************/
// INSERT/UPDATE
# table_name
$DB_WRITE['table_name'] = array
(
'field_col1',
'field_col2'
);
/*______________________________________________*/
/* AUXILIARY ARRAYS *****************************/
$MENU['name'] = array
(
'item label' => 'value'
);
/*______________________________________________*/
?>