Skip to content

Instantly share code, notes, and snippets.

@salathe
Created March 12, 2009 23:43
Show Gist options
  • Save salathe/78358 to your computer and use it in GitHub Desktop.
Save salathe/78358 to your computer and use it in GitHub Desktop.
<?php defined('SYSPATH') OR die('No direct access allowed.');
class form extends form_Core {
public static function open($action = NULL, $attr = array(), $hidden = NULL)
{
$form = parent::open($action, $attr);
empty($hidden) or $form .= '<div class="superfluous_markup_to_conform_to_standards">'.rtrim(form::hidden($hidden)).'</div>';
return $form;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment