cleaning up form class.
This commit is contained in:
@@ -24,11 +24,13 @@ class Form {
|
|||||||
$action = Request::uri();
|
$action = Request::uri();
|
||||||
}
|
}
|
||||||
|
|
||||||
$action = URL::to($action);
|
$attributes['action'] = HTML::entities(URL::to($action));
|
||||||
|
|
||||||
$attributes['action'] = HTML::entities($action);
|
|
||||||
$attributes['method'] = ($method == 'GET' or $method == 'POST') ? $method : 'POST';
|
$attributes['method'] = ($method == 'GET' or $method == 'POST') ? $method : 'POST';
|
||||||
|
|
||||||
|
// -------------------------------------------------------
|
||||||
|
// Set the default character set if it hasn't already been
|
||||||
|
// set in the attributes.
|
||||||
|
// -------------------------------------------------------
|
||||||
if ( ! array_key_exists('accept-charset', $attributes))
|
if ( ! array_key_exists('accept-charset', $attributes))
|
||||||
{
|
{
|
||||||
$attributes['accept-charset'] = Config::get('application.encoding');
|
$attributes['accept-charset'] = Config::get('application.encoding');
|
||||||
|
|||||||
Reference in New Issue
Block a user