public function addFormField($type, $params = array()) {
    $namespace = "\\iJos\\iForms\\Fields\\" . ucfirst($type);
    $field = new $namespace( $params );
    array_push($this -> form_fields, $field);
  }
public function addFormField($type, $params = array()) {
    $namespace = "\\iJos\\iForms\\Fields\\" . ucfirst($type);
    $field = new $namespace( $params );
    array_push($this -> form_fields, $field);
  }
public function addFormField ( $ type , $ params = array ( ) ) { $ namespace = "\\iJos\\iForms\\Fields\\" . ucfirst ( $ type ) ; $ field = new $ namespace ( $ params ) ; array_push ( $ this -> form_fields , $ field ) ; }
Add a Field to the curent form

@param string $type
@param array $params
Add a Field to the curent form