I have 2 steps for registration. In second step i want to keep all fields and values in hidden fields..and im using same form file for both. In my controler
$form = new RegisterForm(null, array("makehidden" => true);
in RegisterForm.php
if ($options['makehidden']) {
$field_type = "Hidden";
} else {
$field_type = "Text";
}
$uname = new $field_type("uname");
but I'm getting error............ how to solve this?