/** * Get the form * * @param boolean $return * @return string|null */ public function flush($return = false) { $form = parent::flush(); // return or print the form if ($return) { return $form; } else { echo $form; return null; } }