Skip to content

Commit

Permalink
rota para a paginacao da pagina postagens
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiancarlos committed May 11, 2012
1 parent 00b4ba3 commit cb21e77
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions application/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
));

/**
Expand Down Expand Up @@ -118,6 +120,12 @@
* defaults for the URI.
*/

// FOR PAGINATION INT POSTAGENS
Route::set('postagens', '<controller>')
->defaults(array(
'controller' => 'postagens',
'action' => 'index',
));

Route::set('default', '(<controller>(/<action>(/<id>)))')
->defaults(array(
Expand Down

0 comments on commit cb21e77

Please sign in to comment.