Spis treści
StatusDraft

2.1 to 2.2 Upgrading

Core

All functionality from the Config and Log classes has moved to the core Kohana class. See Kohana

Replace these in your code:

Configuration

Note1: Config files config/log.php and config/hooks.php are removed. Now configured in core config

Controllers

media controller has been removed.

Special Methods _default and _remap are replace by _ _call($method, $arguments) see Controllers

By default, a 404 error will be triggered if a non-existent controller method is called, and _ _call is defined. You may override this behaviour in your method.

To simulate _remap The _call method should be the only method in the controller.

Libraries

Loader library has been removed. $this→load('something') syntax is obsolete and invalid.

Libraries and models must now be created using the following syntax: $example = new Example(); and $example = new Example_Model();

Where possible and applicable, use Factories to instance libraries, and reference library objects via their instance:

Library Changes