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() ?>