From dcab756ae0e6c2bd371b4a6a4212f03e54269562 Mon Sep 17 00:00:00 2001 From: Oreolek Date: Sat, 29 Dec 2012 19:07:06 +0700 Subject: [PATCH] Kohana 3.3 fix --- application/bootstrap.php | 15 +++++---------- application/views/login.php | 12 ++++++------ 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/application/bootstrap.php b/application/bootstrap.php index dca0c81..bef93bf 100644 --- a/application/bootstrap.php +++ b/application/bootstrap.php @@ -80,8 +80,8 @@ if (isset($_SERVER['KOHANA_ENV'])) * - boolean caching enable or disable internal caching FALSE */ Kohana::init(array( - 'base_url' => '/phunt', - 'index_file' => 'index.php', + 'base_url' => '/', + 'index_file' => FALSE, 'errors' => TRUE, 'profile' => (Kohana::$environment == Kohana::DEVELOPMENT), 'caching' => (Kohana::$environment == Kohana::PRODUCTION) @@ -122,13 +122,8 @@ Kohana::modules(array( * Set the routes. Each route must have a minimum of a name, a URI and a set of * defaults for the URI. */ -Route::set('error', 'error/(/)', array('action' => '[0-9]++','message' => '.+')) - ->defaults(array( - 'controller' => 'Error', -)); - Route::set('default', '((/(/)))') - ->defaults(array( +->defaults(array( 'controller' => 'Error', - 'action' => '404', - )); + 'action' => 'view', +)); diff --git a/application/views/login.php b/application/views/login.php index da12094..195e364 100644 --- a/application/views/login.php +++ b/application/views/login.php @@ -3,10 +3,10 @@

Введите логин и пароль для получения доступа к разделу.

- -

-

-

+ +

+

+

- -execute() ?> \ No newline at end of file + +execute() ?>