diff --git a/application/controllers/home.php b/application/controllers/home.php index 982cc513..d54746d6 100644 --- a/application/controllers/home.php +++ b/application/controllers/home.php @@ -1,6 +1,6 @@ core("database.connectors.{$config['driver']}")->connect($config); + return IoC::core("database.connectors.{$config['driver']}")->connect($config); } /** diff --git a/laravel/form.php b/laravel/form.php index af94d5f1..73ba5670 100644 --- a/laravel/form.php +++ b/laravel/form.php @@ -52,7 +52,12 @@ public static function open($action = null, $method = 'POST', $attributes = arra $attributes['accept-charset'] = Config::get('application.encoding'); } - $append = ($method == 'PUT' or $method == 'DELETE') ? static::hidden(Request::spoofer, $method) : ''; + $append = ''; + + if ($method == 'PUT' or $method == 'DELETE') + { + $append = static::hidden(Request::spoofer, $method); + } return '