PHP Classes

File: demo/views/index.tpl.php

Recommend this page to a friend!
  Classes of Nikos M.   Formal PHP Validation Library   demo/views/index.tpl.php   Download  
File: demo/views/index.tpl.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Formal PHP Validation Library
Validate a set values with support to type casting
Author: By
Last change: v.1.0.0 contd

* fix typo in doMergeDefaults
* enable wildcard notation in defaults
* make WILDCARD/SEPARATOR option configurable
Date: 2 years ago
Size: 990 bytes
 

Contents

Class file image Download
<?php $this->extend('content.tpl.php'); ?>

<?php $this->start('content'); ?>
<p><b>Formal w/ Tico</b> Index page</p>
<b>Data</b>
<pre><?php print_r($data); ?></pre><br />
<?php if (!empty($err)) { ?>
<b>Errors</b>
<pre><?php echo implode("\n", $err); ?></pre>
<?php } ?>
<br />
<form method="post">
Foo: <input name="foo" type="text" value="" /><br />
Moo: <input name="moo[0][choo]" type="text" value="1" /><br />
<input name="moo[1][choo]" type="text" value="2" /><br />
<input name="moo[2][choo]" type="text" value="3" /><br />
Koo: <input name="koo[]" type="text" value="" /><br />
<input name="koo[]" type="text" value="" /><br />
<input name="koo[]" type="text" value="" /><br />
Nums: <input name="num[]" type="text" value="0.1" /><input name="num[]" type="text" value="1.2" /><br />
Dates: <input name="date[]" type="text" value="2012-11-02" /><input name="date[]" type="text" value="20-11-02" /><br />
<button type="submit">Submit</button>
</form>
<?php $this->end('content'); ?>