^Status|Draft| ====== 2.2 Changelog ====== Kohana is now PHP 5.2+ only. ===== Libraries ===== **New** * Captcha : Generates and validates [[wp>Captcha|captcha]] images * Database : Added Mssql driver * Payment : Added Paypal Pro driver * Session : Added Cache driver **Removed** * Removed Loader : ''$this->load'' no longer available, see [[general:loading|loading]] **Changes** * User_Agent : moved functionality to [[core:kohana#user_agent_info|Kohana::user_agent()]] * Database : Added in() and notin() * Database : Added config variable to turn off automatic query escaping. Defaults to TRUE * Database : Fixed a bug in in has_operator() to correctly detect IS NOT NULL * ORM: Rewrote ORM for better performance and better relationships support, [[http://learn.kohanaphp.com/2008/07/16/new-orm-overview-of-changes/|overview of changes]] * Cache : Configuration is now stored in groups as with Database * Pagination : Added pagination config groups ===== Helpers ===== **New** * Added upload * Added format **Changes** * Added arr::callback_string() * Added arr::extract() * Added arr::overwrite() * Added arr::range() * Added html::email() * Removed file::extension() ===== Modules ===== **New** * Unit_test : Allows creating [[wp>Unit_test|unit tests]] for Kohana **Removed** * Forge : Moved to [[http://code.google.com/p/KohanaModules|KohanaModules]] * Media : Moved to [[http://code.google.com/p/KohanaModules|KohanaModules]] **Changes** * Auth : Added Auth::logged_in() method * Auth : Added Auth::force_login() method * Auth : Autologin cookie has been renamed from 'autologin' to 'authautologin' * Auth : User_Model is now stored in session rather than the id, username and roles * Auth : 'auth' controller has been renamed to 'auth_demo' ===== Config ===== **New** * Added http ** Changes ** * Added core.render_stats : Enable or disable rendering strings like ''{execution_time}'' in rendered output * Added log.prefix : Allows multiple applications to be logged into a single directory * Changed log.threshold order : 1 - errors, 2 - application alert, 3 - application info, 4 - debug * Removed core.preload : Preloading should now be done in the controller ''__construct'' * Removed core.allow_config_set : Config setting is always enabled * Removed routes._allowed : All routes are allowed, but [[helpers:html#specialchars|html::specialchars()]] is applied * Removed cookie.prefix : Cookies can no longer be prefixed universally ===== Controllers ===== * Template : Changed method Template_Controller::_display to _render