Moved Form::close next to Form::open.

This commit is contained in:
Taylor Otwell 2011-06-14 11:14:15 -07:00
parent 59fa681de1
commit 8161e2c736
1 changed files with 10 additions and 10 deletions

View File

@ -53,6 +53,16 @@ public static function open($action = null, $method = 'POST', $attributes = arra
return $html.PHP_EOL;
}
/**
* Close a HTML form.
*
* @return void
*/
public static function close()
{
return '</form>'.PHP_EOL;
}
/**
* Generate a hidden field containing the current CSRF token.
*
@ -296,14 +306,4 @@ private static function input($type, $name, $value = null, $attributes = array()
return '<input'.HTML::attributes($attributes).' />'.PHP_EOL;
}
/**
* Close a HTML form.
*
* @return void
*/
public static function close()
{
return '</form>'.PHP_EOL;
}
}