Preparing bootstrap for beta release
This commit is contained in:
parent
92b78db45f
commit
ab60177ac5
|
@ -38,16 +38,26 @@ set_error_handler(array('Kohana', 'error_handler'));
|
|||
|
||||
/**
|
||||
* Initialize Kohana, setting the default options.
|
||||
*
|
||||
* The following options are available:
|
||||
* - base_url: path, and optionally domain, of your application
|
||||
* - index_file: name of your index file, usually "index.php"
|
||||
* - charset: internal character set used for input and output
|
||||
* - profile: enable or disable internal profiling
|
||||
* - caching: enable or disable internal caching
|
||||
*/
|
||||
Kohana::init(array('charset' => 'utf-8', 'base_url' => '/ko3/', 'index_file' => 'index.php'));
|
||||
Kohana::init(array('charset' => 'utf-8', 'base_url' => '/ko3/'));
|
||||
|
||||
/**
|
||||
* Enable modules. Modules are referenced by a relative or absolute path.
|
||||
*/
|
||||
Kohana::modules(array(
|
||||
// 'orm' => MODPATH.'orm',
|
||||
'database' => MODPATH.'database',
|
||||
'todoist' => MODPATH.'todoist',
|
||||
// 'database' => MODPATH.'database', // Database access
|
||||
// 'image' => MODPATH.'image', // Image manipulation (not complete)
|
||||
// 'orm' => MODPATH.'orm', // Object Relationship Mapping (not complete)
|
||||
// 'pagination' => MODPATH.'pagination', // Paging of results (not complete)
|
||||
// 'paypal' => MODPATH.'paypal', // PayPal integration (not complete)
|
||||
// 'todoist' => MODPATH.'todoist', // Todoist integration
|
||||
));
|
||||
|
||||
/**
|
||||
|
@ -57,15 +67,9 @@ Kohana::modules(array(
|
|||
Kohana::$log->attach(new Kohana_Log_File(APPPATH.'logs'));
|
||||
|
||||
/**
|
||||
* Set the routes.
|
||||
* Set the routes. Each route must have a minimum of a name, a URI and a set of
|
||||
* defaults for the URI.
|
||||
*/
|
||||
|
||||
Route::set('test', 'test/(<controller>(/<action>))')
|
||||
->defaults(array(
|
||||
'directory' => 'test',
|
||||
'controller' => 'list',
|
||||
'action' => 'index'));
|
||||
|
||||
Route::set('default', '(<controller>(/<action>(/<id>)))')
|
||||
->defaults(array(
|
||||
'controller' => 'welcome',
|
||||
|
|
Loading…
Reference in a new issue