Esempio n. 1
0
<?php

include_once 'system/parser.lib.php';
include_once 'system/generator.lib.php';
if (!($parser = nFormParser::byFile('examples/register.nconfig'))) {
}
if (!($parsed = $parser->parse())) {
}
$NFORM_CONFIG = $parsed['global'];
$html_gen = nFormGenerator::htmlGenerator($parsed);
#header('Content-Type: text/plain; charset=utf-8');
die($html_gen->getContent());
Esempio n. 2
0
 public function __construct()
 {
     self::$VALID_KEYS = array('type', 'datatype', 'minlength', 'maxlength', 'flags', 'match_regex', 'label', 'title', 'error_length', 'error_required', 'error_format', 'class_prefix', 'id', 'required_symbol');
 }