예제 #1
0
파일: example.php 프로젝트: Jusophos/nForm
<?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());
예제 #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');
 }