Moved Form::close next to Form::open.
This commit is contained in:
@@ -53,6 +53,16 @@ class Form {
|
|||||||
return $html.PHP_EOL;
|
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.
|
* Generate a hidden field containing the current CSRF token.
|
||||||
*
|
*
|
||||||
@@ -296,14 +306,4 @@ class Form {
|
|||||||
return '<input'.HTML::attributes($attributes).' />'.PHP_EOL;
|
return '<input'.HTML::attributes($attributes).' />'.PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Close a HTML form.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public static function close()
|
|
||||||
{
|
|
||||||
return '</form>'.PHP_EOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user