Moved Form::close next to Form::open.
This commit is contained in:
parent
59fa681de1
commit
8161e2c736
|
@ -53,6 +53,16 @@ public static function open($action = null, $method = 'POST', $attributes = arra
|
||||||
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 @@ private static function input($type, $name, $value = null, $attributes = array()
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue