'/kohana/')); /** * Attach the file write to logging. Multiple writers are supported. */ Kohana::$log->attach(new Kohana_Log_File(APPPATH.'logs')); /** * Attach a file reader to config. Multiple readers are supported. */ Kohana::$config->attach(new Kohana_Config_File); /** * Enable modules. Modules are referenced by a relative or absolute path. */ Kohana::modules(array( // 'database' => MODPATH.'database', // Database access // 'image' => MODPATH.'image', // Image manipulation // 'kodoc' => MODPATH.'kodoc', // Kohana documentation // 'orm' => MODPATH.'orm', // Object Relationship Mapping (not complete) // 'pagination' => MODPATH.'pagination', // Paging of results // 'paypal' => MODPATH.'paypal', // PayPal integration (not complete) // 'todoist' => MODPATH.'todoist', // Todoist integration // 'unittest' => MODPATH.'unittest', // Unit testing // 'codebench' => MODPATH.'codebench', // Benchmarking tool )); /** * Set the routes. Each route must have a minimum of a name, a URI and a set of * defaults for the URI. */ Route::set('default', '((/(/)))') ->defaults(array( 'controller' => 'welcome', 'action' => 'index', )); /** * Execute the main request using PATH_INFO. If no URI source is specified, * the URI will be automatically detected. */ echo Request::instance() ->execute() ->send_headers() ->response;