Show
Ignore:
Timestamp:
08/27/2008 05:15:39 PM (3 months ago)
Author:
Shadowhand
Message:

API CHANGE! Major changes to error reporting, routing, and class naming!

Complete change of autoloading: classes are now loaded by changing underscores to slashes to create a path, eg: Controller_Admin_User would be found at classes/admin/user.php (See routing changes below for more information)

  • All classes (libraries, helpers, controllers, and models) are now stored under the classes/ directory
  • Controllers and models are now prefixed instead of suffixed (eg: Controller_Welcome instead of Welcome_Controller)
  • All classes can now become transparently extensible by adding a "Core" suffix (eg: User_Model_Core extends Model)
  • Archive module has had it's drivers updated with new paths, but other modules will need to be updated, and will be non-functional temporarily

Complete routing change: routes are now defined similar to Horde Routes (see http://dev.horde.org/routes/manual/nitty-gritty-route-setup.html ), see http://paste.isanonymo.us/Dmq6n6FYfHnFFhbFs0weS8KqfDgBiGkS for an example of new routes configuration. Official documentation to follow.

  • Default route in system/config/routes.php changed
  • URI class removed because all arguments are now named (eg: Router::$argumentsid? to fetch the :id arg)
  • Added Router::compile to compile the regex for given route (protected)
  • Added Router::keys to find the :keys from a URI string
  • Added Router::uri to generate a URI from a route name and values (not complete)

Other misc changes:

  • Errors and exceptions are now inline, rather than replacing the entire page. Having core.display_errors disabled has no effect (not complete)
  • Added application/i18n/en_US directory for application language files (eg: Validation errors)
  • UTF-8 environment check moved to bootstrap.php
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/config/cache.php

    r3326 r3366  
    55 * Cache settings, defined as arrays, or "groups". If no group name is 
    66 * used when loading the cache library, the group named "default" will be used. 
    7  * 
    87 * Each group can be used independently, and multiple groups can be used at once. 
    98 * 
    10  * Group Options: 
    11  *  driver   - Cache backend driver. Kohana comes with file, database, and memcache drivers. 
    12  *              > File cache is fast and reliable, but requires many filesystem lookups. 
    13  *              > Database cache can be used to cache items remotely, but is slower. 
    14  *              > Memcache is very high performance, but prevents cache tags from being used. 
     9 * driver 
     10 * :  Kohana comes with [apc][ref-apc], [eaccelerator][ref-eac], [file][ref-fil], 
     11 *    [memcache][ref-mem], [sqlite][ref-sql], and [xcache][ref-xca] drivers. 
    1512 * 
    16  *  params   - Driver parameters, specific to each driver. 
     13 * params 
     14 * :  Driver-specific configuration options. 
    1715 * 
    18  *  lifetime - Default lifetime of caches in seconds. By default caches are stored for 
    19  *             thirty minutes. Specific lifetime can also be set when creating a new cache. 
    20  *             Setting this to 0 will never automatically delete caches. 
     16 * lifetime 
     17 * :  Default lifetime of caches in seconds. By default caches are stored for  
     18 *    thirty minutes. Specific lifetime can also be set when creating a new cache. 
     19 *    Setting this to 0 will never automatically delete caches. 
    2120 * 
    22  *  requests - Average number of cache requests that will processed before all expired 
    23  *             caches are deleted. This is commonly referred to as "garbage collection". 
    24  *             Setting this to 0 or a negative number will disable automatic garbage collection. 
     21 * requests 
     22 * :  Average number of cache requests that will processed before all expired 
     23 *    caches are deleted (garbage collection). Setting this to 0 will disable 
     24 *    automatic garbage collection. 
     25 * 
     26 * [ref-apc]: http://docs.kohanaphp.com/book/cache/drivers/apc 
     27 * [ref-eac]: http://docs.kohanaphp.com/book/cache/drivers/eaccelerator 
     28 * [ref-fil]: http://docs.kohanaphp.com/book/cache/drivers/file 
     29 * [ref-mem]: http://docs.kohanaphp.com/book/cache/drivers/memcache 
     30 * [ref-sql]: http://docs.kohanaphp.com/book/cache/drivers/sqlite 
     31 * [ref-xca]: http://docs.kohanaphp.com/book/cache/drivers/xcache 
    2532 */ 
    2633$config['default'] = array