/** * Adds hidden form control used to store a non-displayed value. * @param string control name * @param mixed default value * @return HiddenField */ public function addHidden($name, $default = NULL) { $control = new HiddenField(); $control->setDefaultValue($default); return $this[$name] = $control; }