snipplrCallback({"id":20012,"title":"kohana-3-bootstrapphp-for-admin-subfolder","source":"
<?php<\/span> defined<\/span><\/a>(<\/span>'SYSPATH'<\/span>)<\/span> or die<\/span><\/a>(<\/span>'No direct script access.'<\/span>)<\/span>;<\/span><\/div><\/li> <\/div><\/li> \/\/-- Environment setup --------------------------------------------------------<\/span><\/div><\/li> <\/div><\/li> \/**<\/span><\/div><\/li> * Set the default time zone.<\/span><\/div><\/li> *<\/span><\/div><\/li> * @see http:\/\/docs.kohanaphp.com\/features\/localization#time<\/span><\/div><\/li> * @see http:\/\/php.net\/timezones<\/span><\/div><\/li> *\/<\/span><\/div><\/li> date_default_timezone_set<\/span><\/a>(<\/span>'America\/Chicago'<\/span>)<\/span>;<\/span><\/div><\/li> <\/div><\/li> \/**<\/span><\/div><\/li> * Enable the Kohana auto-loader.<\/span><\/div><\/li> *<\/span><\/div><\/li> * @see http:\/\/docs.kohanaphp.com\/features\/autoloading<\/span><\/div><\/li> * @see http:\/\/php.net\/spl_autoload_register<\/span><\/div><\/li> *\/<\/span><\/div><\/li> spl_autoload_register<\/span><\/a>(<\/span>array<\/span><\/a>(<\/span>'Kohana'<\/span>,<\/span> 'auto_load'<\/span>)<\/span>)<\/span>;<\/span><\/div><\/li> <\/div><\/li> \/\/-- Configuration and initialization -----------------------------------------<\/span><\/div><\/li> <\/div><\/li> \/**<\/span><\/div><\/li> * Initialize Kohana, setting the default options.<\/span><\/div><\/li> *<\/span><\/div><\/li> * The following options are available:<\/span><\/div><\/li> *<\/span><\/div><\/li> * - string base_url path, and optionally domain, of your application NULL<\/span><\/div><\/li> * - string index_file name of your index file, usually "index.php" index.php<\/span><\/div><\/li> * - string charset internal character set used for input and output utf-8<\/span><\/div><\/li> * - string cache_dir set the internal cache directory APPPATH\/cache<\/span><\/div><\/li> * - boolean errors enable or disable error handling TRUE<\/span><\/div><\/li> * - boolean profile enable or disable internal profiling TRUE<\/span><\/div><\/li> * - boolean caching enable or disable internal caching FALSE<\/span><\/div><\/li>