batufa/application/bootstrap.php

38 lines
753 B
PHP
Raw Normal View History

<?php defined('SYSPATH') or die('No direct script access.');
/**
* Initialize Kohana
*/
2009-04-18 00:40:11 +03:00
Kohana::init(array('charset' => 'utf-8', 'base_url' => '/ko3/'));
/**
* Enable modules.
*/
Kohana::modules(array(
2009-04-18 00:40:11 +03:00
// 'orm' => MODPATH.'orm',
// 'database' => MODPATH.'database',
'todoist' => MODPATH.'todoist',
));
/**
* Log all messages to files
*/
Kohana::$log->attach(new Kohana_Log_File(APPPATH.'logs'));
/**
* Set the language to use for translating.
*/
i18n::$lang = 'en_US';
/**
* Set the routes.
*/
2009-04-18 00:40:11 +03:00
Route::add('default', '(<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'welcome',
'action' => 'index',
'id' => NULL));
// Execute the main request
Request::instance($_SERVER['PATH_INFO'])->execute(FALSE);