CHANGELOG.md 42.8 KB
Newer Older
1 2 3
Yii Framework 2 Change Log
==========================

Qiang Xue committed
4 5 6
2.0.0-rc under development
--------------------------

7
- Bug #1263: Fixed the issue that Gii and Debug modules might be affected by incompatible asset manager configuration (qiangxue)
8
- Bug #2314: Gii model generator does not generate correct relation type in some special case (qiangxue)
9
- Bug #2563: Theming is not working if the path map of the theme contains ".." or "." in the paths (qiangxue)
ElisDN committed
10
- Bug #2801: Fixed the issue that GridView gets footer content before data cells content (ElisDN)
11
- Bug #2853: ActiveRecord did not handle resource-typed columns well (chris68, qiangxue)
12
- Bug #3042: `yii\widgets\Pjax` should end application right after it finishes responding to a pjax request (qiangxue)
13
- Bug #3066: `yii\db\mssql\Schema::getTableSchema()` should return null when the table does not exist (qiangxue)
14
- Bug #3091: Fixed inconsistent treatment of `Widget::run()` when a widget is used as a container and as a self-contained object (qiangxue)
15
- Bug #3118: Ensure client validation has the same behavior as server side validation for number validator (cebe)
16
- Bug #3121: `yii\base\Application::bootstrap` may fail to load some components if they are specified as class names (qiangxue)
17
- Bug #3125: `yii\console\controllers\AssetController` now respects data URL resources (klimov-paul)
18
- Bug #3128: Fixed the bug that `defaultRoles` set in RBAC manager was not working as specified (qiangxue)
Qiang Xue committed
19
- Bug #3153: Fixed the bug that using "between" operator to build a SQL query will cause a PHP notice (gonimar)
20
- Bug #3184: Fixed the bug that client validation for string length comparison did not set error message correctly (Sergeygithub)
Carsten Brandt committed
21
- Bug #3194: Date formatter works only for timestamps in the year range 1970 to 2038 (kartik-v)
22
- Bug #3204: `yii\di\Container` did not handle the `$config` parameter well in case when it does not have a default value (qiangxue)
23
- Bug #3216: Fixed the bug that `yii.activeForm.destroy()` did not remove `submit` event handlers (qiangxue)
24
- Bug #3236: Return value for DateTime->format('U') casted to double to allow correct date formatting (pgaultier)
25
- Bug #3268: Fixed the bug that the schema name in a table name was not respected by `yii\db\mysql\Schema` (terazoid, qiangxue)
Qiang Xue committed
26
- Bug #3311: Fixed the bug that `yii\di\Container::has()` did not return correct value (mgrechanik, qiangxue)
27
- Bug #3327: Fixed "Unable to find debug data" when logging objects with circular references (jarekkozak, samdark)
28
- Bug #3368: Fix for comparing numeric attributes in JavaScript (technixp)
29
- Bug #3393: Fix `yii\helpers\FileHelper::copyDirectory()` pattern not working (klimov-paul)
Carsten Brandt committed
30 31
- Bug #3431: Allow using extended ErrorHandler class from the app namespace (cebe)
- Bug #3436: Fixed the issue that `ServiceLocator` still returns the old component after calling `set()` with a new definition (qiangxue)
32
- Bug #3458: Fixed the bug that the image rendered by `CaptchaAction` was using a wrong content type (MDMunir, qiangxue)
33
- Bug #3473: Allow postgreSQL to specify timestamp precision via abstract types in QueryBuilder (cebe)
34
- Bug #3478: Fixed yii\console\Controller::select accept empty input as '0' value (lynicidn)
35
- Bug #3522: Fixed BaseFileHelper::normalizePath to allow a (.) for the current path. (skotos)
36
- Bug #3548: Fixed the bug that X-Rate-Limit-Remaining header is always zero when using RateLimiter (qiangxue)
37
- Bug #3564: Fixed the bug that primary key columns should not take default values from schema (qiangxue)
38
- Bug #3567: Fixed the bug that smallint was treated as string for PostgreSQL (qiangxue)
39
- Bug #3578: Fixed postgreSQL column type detection, added missing types (MDMunir, cebe)
40 41
- Bug #3591: Fixed incomplete obsolete filling in i18n `MessageController::saveMessagesToDb()` (advsm)
- Bug #3601: Fixed the bug that the refresh URL was not generated correctly by `Captcha` (qiangxue, klevron)
42
- Bug #3715: Fixed the bug that using a custom pager/sorter with `GridView` may generate two different pagers/sorters if the layout configures two pagers/sorters (qiangxue)
43
- Bug #3716: `DynamicModel::validateData()` does not call `validate()` if the `$rules` parameter is empty (qiangxue)
44
- Bug #3751: Fixed postgreSQL schema data for enum values, do not add values if there are none (makroxyz)
45
- Bug #3752: `QueryBuilder::batchInsert()` does not typecast input values (qiangxue)
46
- Bug #3756: Fix number formatting error for `\yii\base\Formatter` by converting strings to float (kartik-v)
47
- Bug #3772: Behaviors adding validation rules do not work as expected (qiangxue)
48
- Bug #3817: `yii\rbac\PhpManager::getChildren()` returns null instead of expected empty array (qiangxue)
49 50
- Bug #3843: Fixed Menu bug when using `template` with `encodeLabel` => false (creocoder, umneeq)
- Bug #3863: Fixed incorrect js selector for `\yii\widgets\ActiveForm::errorSummaryCssClass` when it contains multiple classes (creocoder, umneeq)
51
- Bug #3909: `Html::to()` should not prefix base URL to URLs that already contain scheme (qiangxue)
Qiang Xue committed
52
- Bug #3934: yii.handleAction() in yii.js does not correctly detect if a hyperlink contains useful URL or not (joni-jones, qiangxue)
53
- Bug #3968: Messages logged in shutdown functions are not handled (qiangxue)
54
- Bug #3996: Traversing `Yii::$app->session` may cause a PHP error (qiangxue)
Andrey Smirnov committed
55
- Bug: Fixed inconsistent return of `\yii\console\Application::runAction()` (samdark)
Klimov Paul committed
56
- Bug: URL encoding for the route parameter added to `\yii\web\UrlManager` (klimov-paul)
57
- Bug: Fixed the bug that requesting protected or private action methods would cause 500 error instead of 404 (qiangxue)
58
- Bug: Fixed Object of class Imagick could not be converted to string in CaptchaAction (eXprojects, cebe)
59
- Enh #2264: `CookieCollection::has()` will return false for expired or removed cookies (qiangxue)
60
- Enh #2435: `yii\db\IntegrityException` is now thrown on database integrity errors instead of general `yii\db\Exception` (samdark)
61
- Enh #2837: Error page now shows arguments in stack trace method calls (samdark)
62
- Enh #2906: Added support for using conditional comments for js and css files registered through asset bundles and Html helper (exromany, qiangxue)
63
- Enh #2942: Added truncate and truncateWord methods (Alex-Code, samdark)
64
- Enh #3008: Added `Html::errorSummary()` (qiangxue)
65
- Enh #3088: The debug and gii modules will manage their own URL rules now (hiltonjanfield, qiangxue)
Qiang Xue committed
66
- Enh #3103: debugger panel is now not displayed when printing a page (githubjeka)
67
- Enh #3108: Added `yii\debug\Module::enableDebugLogs` to disable logging debug logs by default (qiangxue)
68
- Enh #3132: `yii\rbac\PhpManager` now supports more compact data file format (qiangxue)
69
- Enh #3154: Added validation error display for `GridView` filters (ivan-kolmychek)
70
- Enh #3196: Masked input upgraded to use jquery.inputmask plugin with more features. (kartik-v)
71
- Enh #3222: Added `useTablePrefix` option to the model generator for Gii (horizons2)
72
- Enh #3230: Added `yii\filters\AccessControl::user` to support access control with different actors (qiangxue)
73
- Enh #3232: Added `export()` and `exportAsString()` methods to `yii\helpers\BaseVarDumper` (klimov-paul)
74
- Enh #3244: Allow logging complex data such as arrays and object via the log system (cebe)
75
- Enh #3252: Added support for case insensitive matching using ILIKE to PostgreSQL QueryBuilder (cebe)
76
- Enh #3280: Support dynamically attaching anonymous behaviors (qiangxue)
77
- Enh #3284: Added support for checking multiple ETags by `yii\filters\HttpCache` (qiangxue)
78
- Enh #3298: Supported configuring `View::theme` using a class name (netyum, qiangxue)
Qiang Xue committed
79
- Enh #3328: `BaseMailer` generates better text body from html body (armab)
Alex-Code committed
80
- Enh #3380: Allow `value` in `defaultValueValidator` to be a closure (Alex-Code)
Alexander Makarov committed
81
- Enh #3399, #3241: Added support for MS SQL Server older than 2012 (fourteenmeister, samdark)
82
- Enh #3472: Added configurable option to encode spaces in dropDownLists and listBoxes (kartik-v)
DaSourcerer committed
83
- Enh #3518: `yii\helpers\Html::encode()` now replaces invalid code sequences with "�" (DaSourcerer)
Carsten Brandt committed
84
- Enh #3520: Added `unlinkAll()`-method to active record to remove all records of a model relation (NmDimas, samdark, cebe)
85
- Enh #3521: Added `yii\filters\HttpCache::sessionCacheLimiter` (qiangxue)
86
- Enh #3542: Removed requirement to specify `extensions` in application config (samdark)
87
- Enh #3562: Adding rotateByCopy to yii\log\FileTarget (pawzar)
Alexander Makarov committed
88
- Enh #3574: Add integrity check support for SQLite (zeeke)
armab committed
89
- Enh #3597: Nested array support for HTML5 custom "data-*" attributes (armab)
Mark committed
90
- Enh #3607: Added support for limit in migrations actions: history, new, redo (Ragazzo)
leandrogehlen committed
91
- Enh #3631: Added property `currencyCode` to `yii\i18n\Formatter` (leandrogehlen)
92
- Enh #3636: Hide menu container tag with empty items in `yii\widgets\Menu` (arturf)
Carsten Brandt committed
93
- Enh #3643: Improved Mime-Type detection by using the `mime.types` file from apache http project to dected mime types by file extension (cebe, pavel-voronin, trejder)
Qiang Xue committed
94
- Enh #3773: Added `FileValidator::mimeTypes` to support validating MIME types of files (Ragazzo)
Mark committed
95
- Enh #3774: Added `FileValidator::checkExtensionByMimeType` to support validating file types against file mime-types (Ragazzo)
96
- Enh #3801: Base migration controller `yii\console\controllers\BaseMigrateController` extracted (klimov-paul)
97 98 99 100 101 102
- Enh #3939: `\yii\Inflector::slug()` improvements (samdark)
    - Added protected `\yii\Inflector::transliterate()` that could be replaced with custom translit implementation.
    - Added proper tests for both intl-based slug and PHP fallback.
    - Removed character maps for non-latin languages.
    - Improved overall slug results.
    - Added note about the fact that intl is required for non-latin languages to requirements checker.
103
- Enh: Added support for using sub-queries when building a DB query with `IN` condition (qiangxue)
104
- Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue)
105
- Enh: Added `yii\web\UrlManager::addRules()` to simplify adding new URL rules (qiangxue)
106
- Enh: Added support to insert an event handler at the beginning of class-level event handler queue (qiangxue)
107 108
- Enh: Added `yii\console\Controller::EXIT_CODE_NORMAL` and `yii\console\Controller::EXIT_CODE_ERROR` constants (samdark)
- Enh: `yii\console\MigrateController` now returns `yii\console\Controller::EXIT_CODE_ERROR` in case of failed migration (samdark)
109
- Enh: Added method ErrorHandler::unregister() for unregistering the ErrorHandler (cebe)
Alexander Kochetov committed
110
- Enh: Added `all` option to `MigrateController::actionDown()` action (creocoder, umneeq)
Alexander Kochetov committed
111
- Enh: Added support for array attributes in `exist` validator (creocoder)
112
- Enh: Added support for using path alias with `FileDependency::fileName` (qiangxue)
artur committed
113
- Enh: Added param `hideOnSinglePage` to `yii\widgets\LinkPager` (arturf)
Alexander Kochetov committed
114
- Enh: Added support for array attributes in `in` validator (creocoder)
115
- Enh: Improved `yii\helpers\Inflector::slug` to support more cases for Russian, Hebrew and special characters (samdark)
Dmitry Chernikov committed
116
- Enh #3926: `yii\widgets\Breadcrumbs::$links`. Allows individual link to have its own `template` (creocoder, umneeq)
117
- Chg #2898: `yii\console\controllers\AssetController` is now using hashes instead of timestamps (samdark)
118
- Chg #2913: RBAC `DbManager` is now initialized via migration (samdark)
119
- Chg #3036: Upgraded Twitter Bootstrap to 3.1.x (qiangxue)
120
- Chg #3175: InvalidCallException, InvalidParamException, UnknownMethodException are now extended from SPL BadMethodCallException (samdark)
121
- Chg #3358: Removed automatic CSRF meta tag generation by `View`. Added `Html::csrfMetaTags()` and its call to main layout files (qiangxue)
122
- Chg #3383: Added `$type` parameter to `IdentityInterface::findIdentityByAccessToken()` (qiangxue)
123
- Chg #3531: \yii\grid\GridView now allows any character (except ":") in the attribute part of the shorthand syntax for columns (rawtaz)
124
- Chg #3544: Added `$key` as a parameter to the callable specified via `yii\grid\DataColumn::value` (mdmunir)
Alexander Makarov committed
125
- Chg #3640: All cookies are now httpOnly by default in order to increase overall security (samdark)
126
- Chg #3687: Default `sourceLanguage` and `language` are now `en-US` in order for i18n formatter to work correctly (samdark)
Qiang Xue committed
127
- Chg #3804: Added `fileinfo` PHP extension to the basic requirement of Yii (Ragazzo)
Qiang Xue committed
128
- Chg #3866: The `FileValidator::types` property is renamed to `FileValidator::extensions` (Ragazzo)
129
- Chg #3897: Raised visibility of `yii\web\View::registerAssetFiles()` to protected (samdark)
130
- Chg #3956: Flash messages set via `Yii::$app->session->setFlash()` will be removed only if they are accessed (qiangxue)
131
- Chg: Replaced `clearAll()` and `clearAllAssignments()` in `yii\rbac\ManagerInterface` with `removeAll()`, `removeAllRoles()`, `removeAllPermissions()`, `removeAllRules()` and `removeAllAssignments()` (qiangxue)
132
- Chg: Added `$user` as the first parameter of `yii\rbac\Rule::execute()` (qiangxue)
133
- Chg: `yii\grid\DataColumn::getDataCellValue()` visibility is now `public` to allow accessing the value from a GridView directly (cebe)
134
- Chg: `yii\data\ActiveDataProvider::$query` will not be modified directly with pagination and sorting anymore so it will be reuseable (cebe)
135
- Chg: Removed `yii\rest\ActiveController::$transactional` property and connected functionality (samdark)
136
- Chg: Changed the default value of the `keyPrefix` property of cache components to be null (qiangxue)
137
- Chg: Added `prefix` column to `yii\log\DbTarget` to have the same amount of information logged as in files and emails (cebe)
138
- New #3911: Added `yii\behaviors\SluggableBehavior` that fills the specified model attribute with the transliterated and adjusted version to use in URLs (creocoder)
139

Qiang Xue committed
140

141 142
2.0.0-beta April 13, 2014
-------------------------
Carsten Brandt committed
143

144
- Bug #1265: AssetController does not override 'js' and 'css' for compressed bundles (klimov-paul)
145
- Bug #1326: The `visible` setting for `DetailView` doesn't work as expected (qiangxue)
Qiang Xue committed
146
- Bug #1412: `FileValidator` and `ImageValidator` still trigger `uploadRequired` error in some case when `skipOnEmpty` is true and no upload is provided (qiangxue)
147
- Bug #1446: Logging while logs are processed causes infinite loop (qiangxue)
Qiang Xue committed
148
- Bug #1497: Localized view files are not correctly returned (mintao)
149
- Bug #1500: Log messages exported to files are not separated by newlines (omnilight, qiangxue)
150
- Bug #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled (qiangxue)
151
- Bug #1509: The SQL for creating Postgres RBAC tables is incorrect (qiangxue)
152
- Bug #1545: It was not possible to execute db Query twice, params where missing (cebe)
153
- Bug #1550: fixed the issue that JUI input widgets did not property input IDs.
154
- Bug #1654: Fixed the issue that a new message source object is generated for every new message being translated (qiangxue)
155
- Bug #1582: Error messages shown via client-side validation should not be double encoded (qiangxue)
156
- Bug #1591: StringValidator is accessing undefined property (qiangxue)
157
- Bug #1597: Added `enableAutoLogin` to basic and advanced application templates so "remember me" now works properly (samdark)
158
- Bug #1631: Charset is now explicitly set to UTF-8 when serving JSON (samdark)
Alexander Makarov committed
159
- Bug #1635: `yii\jui\SliderInput` wasn't properly initialized (samdark)
Qiang Xue committed
160
- Bug #1659: MSSQL doesn't support limit (Ana1oliy)
Qiang Xue committed
161
- Bug #1686: ActiveForm is creating duplicated messages in error summary (qiangxue)
162
- Bug #1704: Incorrect regexp is used in `Inflector::camelize()` (qiangxue)
163
- Bug #1710: OpenId auth client does not request required attributes correctly (klimov-paul)
Alexander Makarov committed
164 165
- Bug #1798: Fixed label attributes for array fields (zhuravljov)
- Bug #1800: Better check for `$_SERVER['HTTPS']` in `yii\web\Request::getIsSecureConnection()` (ginus, samdark)
166
- Bug #1812: Hide potential warning message due to race condition occurring to `Session::regenerateID()` call (qiangxue)
167
- Bug #1827: Debugger toolbar is loaded twice if an action is calling `run()` to execute another action (qiangxue)
Mark committed
168
- Bug #1868: Added ability to exclude tables from FixtureController apply/clear actions. (Ragazzo)
Mark committed
169
- Bug #1869: Fixed tables clearing. `TRUNCATE` changed to `DELETE` to avoid postgresql tables checks (and truncating all tables) (Ragazzo)
170
- Bug #1870: Validation errors weren't properly translated when using clientside validation (samdark)
171
- Bug #1930: Fixed domain based URL matching for website root (samdark)
172
- Bug #1937: Fixed wrong behavior or advanced app's `init --env` when called without parameter actually specified (samdark)
173
- Bug #1959: `Html::activeCheckbox` wasn't respecting custom values for checked/unchecked state (klevron, samdark)
174
- Bug #1965: `Controller::findLayoutFile()` returns incorrect file path when layout name starts with a slash (qiangxue)
175
- Bug #1992: In module scenario that use 'site/captcha' will get wrong refreshUrl (callmez)
Carsten Brandt committed
176
- Bug #1993: afterFind event in AR is now called after relations have been populated (cebe, creocoder)
Kevin LEVRON committed
177
- Bug #1998: Unchecked required checkbox never pass client validation (klevron)
178
- Bug #2084: AssetController adjusting CSS URLs declared at same line fixed (klimov-paul)
179
- Bug #2091: `QueryBuilder::buildInCondition()` fails to handle array not starting with index 0 (qiangxue)
180
- Bug #2160: SphinxQL does not support OFFSET (qiangxue, romeo7)
181
- Bug #2209: When I18N message translation is missing source language is now used for formatting (samdark)
182
- Bug #2212: `yii\gridview\DataColumn` generates incorrect labels when used with nosql DB and there is no data (qiangxue)
183
- Bug #2298: Fixed the bug that Gii controller generator did not allow digit in the controller ID (qiangxue)
184
- Bug #2303: Fixed the bug that `yii\base\Theme::pathMap` did not support dynamic update with path aliases (qiangxue)
185
- Bug #2324: Fixed QueryBuilder bug when building a query with "query" option (mintao)
186
- Bug #2399: Fixed the bug that AssetBundle did not handle relative URLs correctly (qiangxue)
187
- Bug #2502: Unclear error message when `$_SERVER['DOCUMENT_ROOT']` is empty (samdark)
188
- Bug #2519: MessageSource removed translation messages when event handler was bound to `missingTranslation`-event (cebe)
189
- Bug #2527: Source language for `app` message category was always `en` no matter which application `sourceLanguage` was used (samdark)
Antonio Ramirez committed
190
- Bug #2559: Going back on browser history breaks GridView filtering with `Pjax` (tonydspaniard)
191
- Bug #2571: Fixed the bug that batchInsert will fail for SQLite if the values contain null or boolean false (qiangxue)
Alexander Makarov committed
192
- Bug #2607: `yii message` tool wasn't updating `message` table (mitalcoi)
193
- Bug #2624: Html::textArea() should respect "name" option. (qiangxue)
194
- Bug #2653: Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue)
Vladimir Zbrailov committed
195
- Bug #2681: Fixed the bug of php build-in server https://bugs.php.net/bug.php?id=66606 (dizews)
196
- Bug #2683: Fixed the bug that batchInsert will fail for MySQL if the values contain boolean false (qiangxue)
Zhandos committed
197
- Bug #2695: Fixed the issue that `FileValidator::isEmpty()` always returns true for validate multiple files (ZhandosKz)
Antonio Ramirez committed
198
- Bug #2739: Fixed the issue that `CreateAction::run()` was using obsolete `Controller::createAbsoluteUrl()` method (tonydspaniard)
Antonio Ramirez committed
199
- Bug #2740: Fixed the issue that `CaptchaAction::run()` was using obsolete `Controller::createUrl()` method (tonydspaniard)
AlexGx committed
200
- Bug #2760: Fixed GridView `filterUrl` parameters (qiangxue, AlexGx)
Alexander Makarov committed
201
- Bug #2834: When overriding i18n translation sources from config using `app*` or `yii*` default `app` and `yii` sources were not removed (samdark)
202
- Bug #2848: Individual queries should be enclosed within parenthesis in a UNION query (qiangxue)
203
- Bug #2862: Using `DbCache` while enabling schema caching may cause infinite loops (qiangxue)
204
- Bug #3052: Fixed the issue that cache dependency data is not reused when `reusable` is set true (qiangxue)
SonicGD committed
205
- Bug #3691: Fixed the issue that `CookieCollection::has` always returns false for cookies from browser (sonicgd)
206
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
207
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
208
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
209
- Bug: Fixed issue with tabular input on ActiveField::radio() and ActiveField::checkbox() (jom)
210
- Bug: Fixed the issue that query cache returns the same data for the same SQL but different query methods (qiangxue)
211
- Bug: Fixed URL parsing so it's now properly giving 404 for URLs like `http://example.com//////site/about` (samdark)
212
- Bug: Fixed `HelpController::getModuleCommands` issue where it attempts to scan a module's controller directory when it doesn't exist (jom)
Qiang Xue committed
213
- Bug: Fixed an issue with FileHelper and not accessible directories which resulted in endless loop (cebe)
214
- Bug: Fixed `$model->load($data)` returned `true` if `$data` and `formName` were empty (samdark)
215
- Bug: Fixed issue with `ActiveRelationTrait` preventing `ActiveQuery` from clearing events and behaviors on clone (jom)
216
- Bug: `Query::queryScalar` wasn't making `SELECT DISTINCT` queries subqueries (jom)
217
- Bug: Fixed use `$files` instead of `self::$_files[$key]` to allow inheritance (pgaultier)
Antonio Ramirez committed
218
- Enh #46: Added Image extension based on [Imagine library](http://imagine.readthedocs.org) (tonydspaniard)
219
- Enh #364: Improve Inflector::slug with `intl` transliteration. Improved transliteration char map. (tonydspaniard)
220
- Enh #497: Removed `\yii\log\Target::logUser` and added `\yii\log\Target::prefix` to support customizing message prefix (qiangxue)
221
- Enh #499: Decoupled `Rule` from RBAC `Item` (samdark, qiangxue)
222
- Enh #797: Added support for validating multiple columns by `UniqueValidator` and `ExistValidator` (qiangxue)
223
- Enh #802: Added support for retrieving sub-array element or child object property through `ArrayHelper::getValue()` (qiangxue, cebe)
Qiang Xue committed
224
- Enh #938: Added `yii\web\View::renderAjax()` and `yii\web\Controller::renderAjax()` (qiangxue)
225
- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
226 227
- Enh #1406: DB Schema support for Oracle Database (p0larbeer, qiangxue)
- Enh #1437: Added ListView::viewParams (qiangxue)
228
- Enh #1467: Added support for organizing controllers in subdirectories (qiangxue)
229
- Enh #1469: ActiveRecord::find() now works with default conditions (default scope) applied by createQuery (cebe)
230
- Enh #1476: Add yii\web\Session::handler property (nineinchnick)
231
- Enh #1499: Added `ActionColumn::controller` property to support customizing the controller for handling GridView actions (qiangxue)
232
- Enh #1523: Query conditions now allow to use the NOT operator (cebe)
233
- Enh #1535: Improved `yii\web\User` to start session only when needed. Also prepared it for use without session. (qiangxue)
234
- Enh #1562: Added `yii\bootstrap\Tabs::linkOptions` (kartik-v)
235
- Enh #1572: Added `yii\web\Controller::createAbsoluteUrl()` (samdark)
236
- Enh #1579: throw exception when the given AR relation name does not match in a case sensitive manner (qiangxue)
237
- Enh #1581: Added `ActiveQuery::joinWith()` and `ActiveQuery::innerJoinWith()` to support joining with relations (qiangxue)
238
- Enh #1585: added schema parameter to createAbsoluteUrl() to force 'http' or 'https' (cebe)
Qiang Xue committed
239
- Enh #1601: Added support for tagName and encodeLabel parameters in ButtonDropdown (omnilight)
240
- Enh #1611: Added `BaseActiveRecord::markAttributeDirty()` (qiangxue)
241
- Enh #1633: Advanced application template now works with MongoDB by default (samdark)
242
- Enh #1634: Use masked CSRF tokens to prevent BREACH exploits (qiangxue)
243
- Enh #1641: Added `BaseActiveRecord::updateAttributes()` (qiangxue)
Mark committed
244
- Enh #1646: Added postgresql `QueryBuilder::checkIntegrity` and `QueryBuilder::resetSequence` (Ragazzo)
245
- Enh #1645: Added `Connection::$pdoClass` property (Ragazzo)
246
- Enh #1645: Added support for nested DB transactions (qiangxue)
247
- Enh #1681: Added support for automatically adjusting the "for" attribute of label generated by `ActiveField::label()` (qiangxue)
248
- Enh #1706: Added support for registering a single JS/CSS file with dependency (qiangxue)
Carsten Brandt committed
249
- Enh #1773: keyPrefix property of Cache is not restricted to alnum characters anymore, however it is still recommended (cebe)
250
- Enh #1809: Added support for building "EXISTS" and "NOT EXISTS" query conditions (abdrasulov)
251
- Enh #1839: Added support for getting file extension and basename from uploaded file (anfrantic)
Alexander Kochetov committed
252
- Enh #1852: ActiveRecord::tableName() now returns table name using DbConnection::tablePrefix (creocoder)
253
- Enh #1881: Improved `yii\bootstrap\NavBar` with `containerOptions`, `innerContainerOptions` and `renderInnerContainer` (creocoder)
254
- Enh #1894: The path aliases `@webroot` and `@web` are now available right after the application is initialized (qiangxue)
255
- Enh #1921: Grid view ActionColumn now allow to name buttons like `{controller/action}` (creocoder)
256
- Enh #1973: `yii message/extract` is now able to generate `.po` files (SergeiKutanov, samdark)
257
- Enh #1984: ActionFilter will now mark event as handled when action run is aborted (cebe)
Carsten Brandt committed
258
- Enh #2002: Added filterWhere() method to yii\db\Query to allow easy addition of search filter conditions by ignoring empty search fields (samdark, cebe)
259
- Enh #2003: Added `filter` property to `ExistValidator` and `UniqueValidator` to support adding additional filtering conditions (qiangxue)
Alexander Makarov committed
260
- Enh #2008: `yii message/extract` is now able to save translation strings to database (kate-kate, samdark)
261
- Enh #2043: Added support for custom request body parsers (danschmidt5189, cebe)
262
- Enh #2051: Do not save null data into database when using RBAC (qiangxue)
263
- Enh #2054: Added support for using custom application configuration with the console command runner (qiangxue)
Alexander Makarov committed
264
- Enh #2079:
265 266 267
    - i18n now falls back to `en` from `en-US` if message translation isn't found (samdark)
    - View now falls back to `en` from `en-US` if file not found (samdark)
    - Default `sourceLanguage` and `language` are now `en` (samdark)
Alexander Makarov committed
268
- Enh #2101: Gii is now using model labels when generating search (thiagotalma)
Alexander Kochetov committed
269 270
- Enh #2102: DetailView now allow use `category.name` as attribute name (creocoder)
- Enh #2102: DetailView now allow use custom label in string format like `name:format:label` (creocoder)
Qiang Xue committed
271
- Enh #2103: Renamed AccessDeniedHttpException to ForbiddenHttpException, added new commonly used HTTP exception classes (danschmidt5189)
Ivan Pomortsev committed
272
- Enh #2124: Added support for UNION ALL queries (Ivan Pomortsev, iworker)
273
- Enh #2132: Allow url of CSS and JS files registered in yii\web\View to be url alias (cebe)
274
- Enh #2144: `Html` helper now supports rendering "data" attributes (qiangxue)
275
- Enh #2156: `yii migrate` now automatically creates `migrations` directory if it does not exist (samdark)
276
- Enh #2211: Added typecast database types into php types (dizews)
277 278 279
- Enh #2240: Improved `yii\web\AssetManager::publish()`, `yii\web\AssetManager::getPublishedPath()` and `yii\web\AssetManager::getPublishedUrl()` to support aliases (vova07)
- Enh #2325: Adding support for the `X-HTTP-Method-Override` header in `yii\web\Request::getMethod()` (pawzar)
- Enh #2364: Take into account current error reporting level in error handler (gureedo)
280
- Enh #2387: Added support for fetching data from database in batches (nineinchnick, qiangxue)
281
- Enh #2392: Added `addCssStyle()`, `removeCssStyle()`, `cssStyleFromArray()` and `cssStyleToArray()` to `Html` (qiangxue, kartik-v, Alex-Code)
Qiang Xue committed
282
- Enh #2406: Added support for conditional validation (drenty, cebe, qiangxue)
Tobias Munk committed
283
- Enh #2411: Added Gii extension generator (schmunk42)
Tobias Munk committed
284
- Enh #2415: Added support for inverse relations (qiangxue)
285
- Enh #2417: Added possibility to set `dataType` for `$.ajax` call in yii.activeForm.js (Borales)
286
- Enh #2436: Label of the attribute, which looks like `relatedModel.attribute`, will be received from the related model if it available (djagya)
287
- Enh #2490: `yii\db\Query::count()` and other query scalar methods now properly handle queries with GROUP BY clause (qiangxue)
288
- Enh #2491: Added support for using the same base class name of search model and data model in Gii (qiangxue)
289
- Enh #2499: Added ability to downgrade migrations by their absolute apply time (resurtm, gorcer)
Vincent committed
290
- Enh #2525: Added support for formatting file sizes with `yii\base\Formatter` (VinceG)
291
- Enh #2526: Allow for null values in batchInsert (skotos)
292
- Enh #2646: Added support for specifying hostinfo in the pattern of a URL rule (qiangxue)
293
- Enh #2661: Added boolean column type support for SQLite (qiangxue)
Christian Nadolle committed
294
- Enh #2670: Changed `console\Controller::globalOptions()` to `options($actionId)` to (make it possible to) differentiate options per action (hqx)
David Renty committed
295
- Enh #2714: Added support for formatting time intervals relative to the current time with `yii\base\Formatter` (drenty)
296
- Enh #2726: Added `yii\db\ActiveRecord::loadDefaultValues()` that fills default values from DB schema (samdark)
297
- Enh #2729: Added `FilterValidator::skipOnArray` so that filters like `trim` will not fail for array inputs (qiangxue)
ivokund committed
298
- Enh #2735: Added support for `DateTimeInterface` in `Formatter` (ivokund)
299
- Enh #2756: Added support for injecting custom `isEmpty` check for all validators (qiangxue)
300
- Enh #2775: Added `yii\base\Application::bootstrap` and `yii\base\BootstrapInterface` to support running bootstrap classes when starting an application (qiangxue)
301
- Enh #2892: ActiveRecord dirty attributes are now reset after call to `afterSave()` so information about changed attributes is available in `afterSave`-event (cebe)
302
- Enh #2910: Added `Application::end()` (qiangxue)
303
- Enh: Added support for using arrays as option values for console commands (qiangxue)
Luciano Baraglia committed
304
- Enh: Added `favicon.ico` and `robots.txt` to default application templates (samdark)
305
- Enh: Added `Widget::autoIdPrefix` to support prefixing automatically generated widget IDs (qiangxue)
306
- Enh: Support for file aliases in console command 'message' (omnilight)
307
- Enh: Sort and Pagination can now create absolute URLs (cebe)
308
- Enh: Added support for using array-typed arguments for console commands (qiangxue)
309
- Enh: Added support for installing packages conforming to PSR-4 standard (qiangxue)
310
- Enh: Better exception message when class cannot be loaded (samdark)
311
- Enh: `init` of advanced application now allows to specify answer for overwriting files via `init --overwrite=n` (samdark)
312
- Enh: Added `TableSchema::fullName` property (qiangxue)
Qiang Xue committed
313
- Enh: yii\codeception\TestCase now supports loading and using fixtures via Yii fixture framework (qiangxue)
314
- Enh: Added ability to get incoming headers (dizews)
315
- Enh: Added `beforeRun()` and `afterRun()` to `yii\base\Action` (qiangxue)
Qiang Xue committed
316
- Enh: Added support for using timeZone with `yii\base\Formatter` (dizews)
317
- Enh: Added `yii\web\View::POS_LOAD` (qiangxue)
318
- Enh: Added `yii\web\Response::clearOutputBuffers()` (qiangxue)
319
- Enh: Improved `QueryBuilder::buildLimit()` to support big numbers (qiangxue)
320
- Enh: Added support for building SQLs with sub-queries (qiangxue)
321
- Enh: Added `Pagination::getLinks()` (qiangxue)
322
- Enh: Added support for reading page size from query parameters by `Pagination` (qiangxue)
323
- Enh: LinkPager can now register relational link tags in the html header for prev, next, first and last page (cebe)
324
- Enh: Added `yii\web\UrlRuleInterface` and `yii\web\CompositeUrlRule` (qiangxue)
325
- Enh: Added `yii\web\Request::getAuthUser()` and `getAuthPassword()` (qiangxue)
326
- Enh: Added summaryOptions and emptyTextOptions to BaseListView (johonunu)
327
- Enh: Implemented Oracle column comment reading from another schema (gureedo, samdark)
328
- Enh: Added support to allow an event handler to be inserted at the beginning of the existing event handler list (qiangxue)
329
- Enh: Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels (qiangxue)
330
- Enh: Added `isAssociative()` and `isIndexed()` to `yii\helpers\ArrayHelper` (qiangxue)
Alex-Code committed
331
- Enh: Added `addSelect` to `yii\db\Query` (Alex-Code)
332
- Enh: Added ODBC support in `yii\db\Connection` (nineinchnick, resurtm)
333
- Chg #47: Changed Markdown library to cebe/markdown and adjusted Markdown helper API (cebe)
334
- Chg #735: Added back `ActiveField::hiddenInput()` (qiangxue)
335
- Chg #1186: Changed `Sort` to use comma to separate multiple sort fields and use negative sign to indicate descending sort (qiangxue)
336
- Chg #1519: `yii\web\User::loginRequired()` now returns the `Response` object instead of exiting the application (qiangxue)
337
- Chg #1564: Removed `yii\web\Session::autoStart` and added `hasSessionId`. Session will be automatically started when accessing session data (qiangxue)
338
- Chg #1586: `QueryBuilder::buildLikeCondition()` will now escape special characters and use percentage characters by default (qiangxue)
339
- Chg #1610: `Html::activeCheckboxList()` and `Html::activeRadioList()` will submit an empty string if no checkbox/radio is selected (qiangxue)
340
- Chg #1643: Added default value for `Captcha::options` (qiangxue)
Alexander Makarov committed
341
- Chg #1796: Removed `yii\base\Controller::getActionParams()` (samdark)
342
- Chg #1835: `CheckboxColumn` now renders checkboxes whose values are the corresponding data key values (qiangxue)
343
- Chg #1821: Changed default values for yii\db\Connection username and password to null (cebe)
344
- Chg #1844: `Response::sendFile()` and other file sending methods will not send the response (qiangxue)
Alexander Kochetov committed
345
- Chg #1852: DbConnection::tablePrefix default value now 'tbl_' (creocoder)
346
- Chg #1958: `beforeSubmit` in `yii.activeform` is now executed after validation and before form submission (6pblcb)
Alexander Makarov committed
347
- Chg #2025: Removed ability to declare scopes in ActiveRecord (samdark)
348
- Chg #2043:
349 350 351 352
    - Renamed `yii\web\Request::acceptedLanguages` to `acceptableLanguages` (qiangxue)
    - Removed `yii\web\Request::getPost()`, `getPut()`, `getDelete()`, `getPatch()` in favor of `getBodyParam()` (cebe)
    - Renamed `yii\web\Request::get()` to `getQueryParams()` and `getRestParams()` to `getBodyParams()` (cebe)
    - Added `yii\web\Request::get($name = null, $defaultValue = null)` and `yii\web\Request::post($name = null, $defaultValue = null)` (samdark)
Qiang Xue committed
353
- Chg #2059: Implemented git-flavored file excluding/filtering for `FileHelper` (nineinchnick)
354
- Chg #2063: Removed `yii\web\Request::acceptTypes` and renamed `yii\web\Request::acceptedContentTypes` to `acceptableContentTypes` (qiangxue)
355
- Chg #2103: Renamed AccessDeniedHttpException to ForbiddenHttpException (danschmidt5189)
356 357 358
- Chg #2146: Removed `ActiveRelation` class and `ActiveRelationInterface`, moved the functionality to `ActiveQuery`.
             All relational queries are now directly served by `ActiveQuery` allowing to use custom scopes in relations
             and also to declare arbitrary queries as relations.
359
             Also removed `ActiveRecordInterface::createActiveRelation()` (cebe)
Qiang Xue committed
360
- Chg #2157: The '*' category pattern will match all categories that do not match any other patterns listed in `I18N::translations` (qiangxue, Ragazzo)
Alexander Makarov committed
361
- Chg #2161: Added ability to use `return` in `Widget::run` (samdark)
Alexander Makarov committed
362
- Chg #2173: Removed `StringHelper::diff()`, Moved `phpspec/php-diff` dependency from `yiisoft/yii2` to `yiisoft/yii2-gii` (samdark)
363
- Chg #2175: QueryBuilder will now append UNION statements at the end of the primary SQL (qiangxue)
364
- Chg #2210: Mysql driver will now treat `tinyint(1)` as integer instead of boolean (qiangxue)
365
- Chg #2248: Renamed `yii\base\Model::DEFAULT_SCENARIO` to `yii\base\Model::SCENARIO_DEFAULT` (samdark)
366
- Chg #2281: Renamed `ActiveRecord::create()` to `populateRecord()` and changed signature. This method will not call instantiate() anymore (cebe)
367
- Chg #2405: The CSS class of `MaskedInput` now defaults to `form-control` (qiangxue)
368
- Chg #2426: Changed URL creation method signatures to be consistent (samdark)
369 370 371
- Chg #2516: Moved error handling from application to ErrorHandler class and fixed problems with HTTP Exception response code (cebe)
    - `Yii::$app->exception` has now moved to `Yii::$app->errorHandler->exception`
    - `yii\base\ErrorHandler` was split into `yii\web\ErrorHandler` and `yii\console\ErrorHandler`
372
- Chg #2544: Changed `DetailView`'s `name:format:label` to `attribute:format:label` to match `GridView` (samdark)
373
- Chg #2603: `yii\base\ErrorException` now extends `\ErrorException` (samdark)
374
- Chg #2629: `Module::controllerPath` is now read only, and all controller classes must be namespaced under `Module::controllerNamespace`. (qiangxue)
375
- Chg #2630: API changes for URLs generation (samdark, qiangxue, cebe)
376 377 378 379
    - Added `yii\helpers\Url`.
    - Removed `yii\helpers\Html::url`, use `yii\helpers\Url::to` instead.
    - Removed `yii\web\Controller::createUrl` and `yii\web\Controller::createAbsoluteUrl`, use `yii\helpers\Url::toRoute` instead.
    - Removed `yii\web\Controller::getCanonicalUrl`, use `yii\helpers\Url::canonical` instead.
380
- Chg #2691: Null parameters will not be included in the generated URLs by `UrlManager` (gonimar, qiangxue)
381
- Chg #2734: `FileCache::keyPrefix` defaults to empty string now (qiangxue)
382
- Chg #2796: Removed `Application::preload` in favor of `Application::bootstrap` (qiangxue)
383
- Chg #2816: Changed default date and time format of `yii\base\Formatter` to `Y-m-d` and `H:i:s` (qiangxue)
384
- Chg #2911: Removed `tbl_` default for table prefix (samdark)
385
- Chg #2912: Relative view files will be looked for under the directory containing the view currently being rendered (qiangxue)
Qiang Xue committed
386
- Chg #2955: Changed the signature of ActiveQuery constructors and replaced `ActiveRecord::createQuery()` with `find()` to simplify customizing ActiveQuery classes (qiangxue)
Qiang Xue committed
387
- Chg #2999: Added `findOne()` and `findAll()` to replace the usage of `ActiveRecord::find($condition)`. (samdark, qiangxue)
388
- Chg: Renamed `yii\jui\Widget::clientEventsMap` to `clientEventMap` (qiangxue)
389
- Chg: Renamed `ActiveRecord::getPopulatedRelations()` to `getRelatedRecords()` (qiangxue)
390
- Chg: Renamed `attributeName` and `className` to `targetAttribute` and `targetClass` for `UniqueValidator` and `ExistValidator` (qiangxue)
391
- Chg: Added `yii\widgets\InputWidget::options` (qiangxue)
392
- Chg: Changed the signature of `urlCreator` and button creators for `yii\gridview\ActionColumn` (qiangxue)
393
- Chg: Updated HTMLPurified dependency to `4.6.*`.
394
- Chg: Changed Yii autoloader to support loading PSR-4 classes only (i.e. PEAR-styled classes not supported anymore) (qiangxue)
Alexander Makarov committed
395 396
- Chg: Changed the directory structure according to PSR-4. You have to update your application `index.php`,
       `index-test.php` and `yii` files to point to the new location of `Yii.php` (qiangxue, cebe)
397
- Chg: Advanced app template: moved database connection DSN, login and password to `-local` config not to expose it to VCS (samdark)
398
- Chg: Renamed `yii\web\Request::acceptedLanguages` to `acceptableLanguages` (qiangxue)
399
- Chg: Removed implementation of `Arrayable` from `yii\Object` (qiangxue)
400
- Chg: The scripts in asset bundles are now registered in `View` at the end of `endBody()`. It was done in `endPage()` previously (qiangxue)
Qiang Xue committed
401
- Chg: Renamed `csrf-var` to `csrf-param` for CSRF header name (Dilip)
402 403
- Chg: The directory holding email templates is renamed from `mails` to `mail` (qiangxue)
- Chg: Renamed properties `fooVar` to `fooParam` for various classes (qiangxue)
404 405 406 407 408 409 410 411 412 413
    - Renamed `ActiveForm::ajaxVar` to `ajaxParam`
    - Renamed `Pagination::pageVar` to `pageParam`
    - Renamed `Sort::sortVar` to `sortParam`
    - Renamed `yii\web\Request::csrfVar` to `csrfParam`
    - Renamed `yii\web\Request::methodVar` to `methodParam`
    - Renamed `UrlManager::routeVar` to `routeParam`
    - Renamed `yii\web\Session::flashVar` to `flashParam`
    - Renamed `yii\web\User::idVar` to `idParam`
    - Renamed `yii\web\User::authTimeoutVar` to `authTimeoutParam`
    - Renamed `yii\web\User::returnUrlVar` to `returnUrlParam`
414
- Chg: Added `View::viewFile` and removed `ViewEvent::viewFile` (qiangxue)
415
- Chg: Changed `Controller::afterAction()`, `Module::afterAction()` and `ActionFilter::afterAction()` to pass `$result` by value instead of reference (qiangxue)
416
- Chg: `yii\base\Extension::init()` is renamed to `bootstrap()` (qiangxue)
Qiang Xue committed
417 418 419
- Chg: `getComponent()` and `setComponent()` in `Application` and `Module` are renamed to `get()` and `set()` respectively. (qiangxue)
- Chg: The signature of `Yii::createObject()` is changed. Constructor parameters must be passed as the second parameter. (qiangxue)
- Chg: `Yii::$objectConfig` is removed. You should use `Yii::$container->set()` to configure default settings of classes. (qiangxue)
420
- Chg: Removed `yii\grid\Column::getDataCellContent()` and renamed `yii\grid\DataColumn::getDataCellContent()` to `yii\grid\DataColumn::getDataCellValue()` (cebe)
421
- Chg: `yii\log\Logger` is split into `yii\log\Logger` and `yii\log\Dispatcher`. (qiangxue)
422
- Chg: Moved all filter classes to namespace `yii\filters` (qiangxue)
423
- Chg: Re-implemented RBAC by following more closely to the original NIST RBAC model. Dropped `yii\rbac\PhpManager`. (qiangxue)
424
- Chg: Renamed `yii\web\User::checkAccess()` to `yii\web\User::can()` (qiangxue)
425
- New #66: [Auth client library](https://github.com/yiisoft/yii2-authclient) OpenId, OAuth1, OAuth2 clients (klimov-paul)
Qiang Xue committed
426
- New #303: Added built-in support for REST API (qiangxue)
Qiang Xue committed
427
- New #503: Added `yii\di\Container` and `yii\di\ServiceLocator` (qiangxue)
428
- New #706: Added `yii\widgets\Pjax` and enhanced `GridView` to work with `Pjax` to support AJAX-update (qiangxue)
429
- New #1393: [Codeception testing framework integration](https://github.com/yiisoft/yii2-codeception) (Ragazzo)
430
- New #1438: [MongoDB integration](https://github.com/yiisoft/yii2-mongodb) ActiveRecord and Query (klimov-paul)
Qiang Xue committed
431
- New #1956: Implemented test fixture framework (qiangxue)
432
- New #2034: Added `ContentNegotiator` to support response format and language negotiation (qiangxue)
433
- New #2149: Added `yii\base\DynamicModel` to support ad-hoc data validation (qiangxue)
434
- New #2360: Added `AttributeBehavior` and `BlameableBehavior`, and renamed `AutoTimestamp` to `TimestampBehavior` (lucianobaraglia, qiangxue)
435
- New #2932: Added `yii\web\ViewAction` that allow you to render views based on GET parameter (samdark)
436
- New #2998: Added `framework\log\SyslogTarget` that is able to write log to syslog (miramir, samdark)
437
- New #3029: Added `yii\bootstrap\ActiveForm` and `yii\bootstrap\ActiveField` (mikehaertl)
438
- New: Yii framework now comes with core messages translated into 26 languages, many thanks to all our translators!
439
- New: Added `yii\codeception\DbTestCase` (qiangxue)
440
- New: Added `yii\web\GroupUrlRule` (qiangxue)
441
- New: Added `yii\filters\RateLimiter` (qiangxue)
442
- New: Added various authentication methods, including `HttpBasicAuth`, `HttpBearerAuth`, `QueryParamAuth`, and `CompositeAuth` (qiangxue)
443
- New: Added `HtmlResponseFormatter` and `JsonResponseFormatter` (qiangxue)
Qiang Xue committed
444

Carsten Brandt committed
445 446
2.0.0-alpha, December 1, 2013
-----------------------------
447

448
- Initial release.
449 450 451 452 453 454 455 456 457
- Official extensions released in this version:
  - [Twitter bootstrap 3.0](https://github.com/yiisoft/yii2-bootstrap)
  - [Jquery UI](https://github.com/yiisoft/yii2-jui)

  - [Debug Toolbar](https://github.com/yiisoft/yii2-debug)
  - [Gii code generator](https://github.com/yiisoft/yii2-gii)

  - [Elasticsearch integration](https://github.com/yiisoft/yii2-elasticsearch): ActiveRecord and Query
  - [Redis integration](https://github.com/yiisoft/yii2-redis): ActiveRecord, Cache and Session
Carsten Brandt committed
458
  - [Sphinx integration](https://github.com/yiisoft/yii2-sphinx): ActiveRecord and Query
459 460 461 462 463

  - [Swiftmailer](https://github.com/yiisoft/yii2-swiftmailer)

  - [Smarty View Renderer](https://github.com/yiisoft/yii2-smarty)
  - [Twig View Renderer](https://github.com/yiisoft/yii2-twig)