github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

kohana / kohana

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 180
    • 33
  • Source
  • Commits
  • Network (33)
  • Wiki (2)
  • Graphs
  • Tree: f2864c0

click here to add a description

click here to add a homepage

  • Branches (1)
    • master
  • Tags (14)
    • beta3
    • beta2
    • beta1
    • 3.0rc3
    • 3.0rc2.1
    • 3.0rc2
    • 3.0rc1
    • 3.0.3
    • 3.0.2.1
    • 3.0.2
    • 3.0.1.2
    • 3.0.1.1
    • 3.0.1
    • 3.0
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Basic application with official modules included — Read more

  cancel

http://kohanaphp.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Tracking submodules 
shadowhand (author)
Mon Aug 24 12:21:21 -0700 2009
commit  f2864c079dfec0268f8d23b00a0b4ad8061d58c5
tree    ddf67d4d98d6a64d16436d6cdd6b9d91d4e2c81f
parent  5fa1982e6905e867a46f8b176263e5e28b89dd34
kohana / application / bootstrap.php application/bootstrap.php
100644 79 lines (68 sloc) 2.663 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php defined('SYSPATH') or die('No direct script access.');
 
//-- Environment setup --------------------------------------------------------
 
/**
* Set the default time zone.
*
* @see http://docs.kohanaphp.com/features/localization#time
* @see http://php.net/timezones
*/
date_default_timezone_set('America/Chicago');
 
/**
* Enable the Kohana auto-loader.
*
* @see http://docs.kohanaphp.com/features/autoloading
* @see http://php.net/spl_autoload_register
*/
spl_autoload_register(array('Kohana', 'auto_load'));
 
//-- Configuration and initialization -----------------------------------------
 
/**
* Initialize Kohana, setting the default options.
*
* The following options are available:
*
* - string base_url path, and optionally domain, of your application NULL
* - string index_file name of your index file, usually "index.php" index.php
* - string charset internal character set used for input and output utf-8
* - string cache_dir set the internal cache directory APPPATH/cache
* - boolean errors enable or disable error handling TRUE
* - boolean profile enable or disable internal profiling TRUE
* - boolean caching enable or disable internal caching FALSE
*/
Kohana::init(array('base_url' => '/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(
// 'auth' => MODPATH.'auth', // Basic authentication
// 'codebench' => MODPATH.'codebench', // Benchmarking tool
// 'database' => MODPATH.'database', // Database access
// 'image' => MODPATH.'image', // Image manipulation
// 'orm' => MODPATH.'orm', // Object Relationship Mapping
// 'pagination' => MODPATH.'pagination', // Paging of results
// 'unittest' => MODPATH.'unittest', // Unit testing
));
 
/**
* 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', '(<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'welcome',
'action' => 'index',
));
 
/**
* Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
* If no source is specified, the URI will be automatically detected.
*/
echo Request::instance()
->execute()
->send_headers()
->response;
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server