Skip to content

Commit

Permalink
adding "helper" directory for my own classes
Browse files Browse the repository at this point in the history
  • Loading branch information
enygma committed Jan 10, 2011
1 parent d2bb23a commit 25108d1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions fuel/app/classes/helper/form.php
@@ -0,0 +1,24 @@
<?php

class Helper_Form
{
static $config = array();

public function __construct($config=null)
{
if($config){ self::$config = $config; }
}

public static function build()
{
var_dump(self::$config);

foreach(self::$config as $field){
$type = $field['type'];
echo call_user_func_array('Form::'.strtolower($type),$field['args']);
}
}

}

?>

0 comments on commit 25108d1

Please sign in to comment.