diff --git a/application/bootstrap.php b/application/bootstrap.php index dcc0a8c..6ea5d7c 100644 --- a/application/bootstrap.php +++ b/application/bootstrap.php @@ -84,8 +84,10 @@ * - boolean caching enable or disable internal caching FALSE */ Kohana::init(array( - 'base_url' => '/kohana_3.2_blog/', - 'index_file' => '' + 'base_url' => Kohana::$environment === Kohana::DEVELOPMENT ? '/kohana_3.2_blog/' : '/nome_dohost_aqui/', + 'caching' => Kohana::$environment === Kohana::PRODUCTION, + 'profile' => Kohana::$environment !== Kohana::PRODUCTION, + 'index_file' => FALSE, )); /** @@ -118,6 +120,12 @@ * defaults for the URI. */ +// FOR PAGINATION INT POSTAGENS +Route::set('postagens', '') + ->defaults(array( + 'controller' => 'postagens', + 'action' => 'index', + )); Route::set('default', '((/(/)))') ->defaults(array(