Permalink
Browse files

adding "helper" directory for my own classes

  • Loading branch information...
1 parent d2bb23a commit 25108d13d1fcba2a14fe3f95502b4298ab1afb4d @enygma committed Jan 10, 2011
Showing with 24 additions and 0 deletions.
  1. +24 −0 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.