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

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

7
- Bug #1326: The `visible` setting for `DetailView` doesn't work as expected (qiangxue)
8
- Bug #1446: Logging while logs are processed causes infinite loop (qiangxue)
Qiang Xue committed
9
- Bug #1497: Localized view files are not correctly returned (mintao)
10
- Bug #1500: Log messages exported to files are not separated by newlines (omnilight, qiangxue)
11
- Bug #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled (qiangxue)
12
- Bug #1509: The SQL for creating Postgres RBAC tables is incorrect (qiangxue)
13
- Bug #1545: It was not possible to execute db Query twice, params where missing (cebe)
14
- Bug #1550: fixed the issue that JUI input widgets did not property input IDs.
15
- Bug #1654: Fixed the issue that a new message source object is generated for every new message being translated (qiangxue)
16
- Bug #1582: Error messages shown via client-side validation should not be double encoded (qiangxue)
17
- Bug #1591: StringValidator is accessing undefined property (qiangxue)
18
- Bug #1597: Added `enableAutoLogin` to basic and advanced application templates so "remember me" now works properly (samdark)
19
- Bug #1631: Charset is now explicitly set to UTF-8 when serving JSON (samdark)
Alexander Makarov committed
20
- Bug #1635: `yii\jui\SliderInput` wasn't properly initialized (samdark)
Qiang Xue committed
21
- Bug #1686: ActiveForm is creating duplicated messages in error summary (qiangxue)
22
- Bug #1704: Incorrect regexp is used in `Inflector::camelize()` (qiangxue)
23
- Bug #1710: OpenId auth client does not request required attributes correctly (klimov-paul)
24
- Bug #1733: Incorrect code about `$_modelClasses` in `DbFixtureManager` (qiangxue)
Alexander Makarov committed
25 26
- Bug #1798: Fixed label attributes for array fields (zhuravljov)
- Bug #1800: Better check for `$_SERVER['HTTPS']` in `yii\web\Request::getIsSecureConnection()` (ginus, samdark)
27
- Bug #1827: Debugger toolbar is loaded twice if an action is calling `run()` to execute another action (qiangxue)
28
- Bug #1870: Validation errors weren't properly translated when using clientside validation (samdark)
29
- Bug #1937: Fixed wrong behavior or advanced app's `init --env` when called without parameter actually specified (samdark)
30
- Bug #1959: `Html::activeCheckbox` wasn't respecting custom values for checked/unckecked state (klevron, samdark)
31
- Bug #1965: `Controller::findLayoutFile()` returns incorrect file path when layout name starts with a slash (qiangxue)
32
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
33
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
34
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
35
- Bug: Fixed issue with tabular input on ActiveField::radio() and ActiveField::checkbox() (jom)
36
- Bug: Fixed the issue that query cache returns the same data for the same SQL but different query methods (qiangxue)
37
- Bug: Fixed URL parsing so it's now properly giving 404 for URLs like `http://example.com//////site/about` (samdark)
Antonio Ramirez committed
38
- Enh #46: Added Image extension based on [Imagine library](http://imagine.readthedocs.org) (tonydspaniard)
39
- Enh #364: Improve Inflector::slug with `intl` transliteration. Improved transliteration char map. (tonydspaniard)
40
- Enh #797: Added support for validating multiple columns by `UniqueValidator` and `ExistValidator` (qiangxue)
41
- Enh #802: Added support for retrieving sub-array element or child object property through `ArrayHelper::getValue()` (qiangxue, cebe)
42
- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
43 44
- Enh #1406: DB Schema support for Oracle Database (p0larbeer, qiangxue)
- Enh #1437: Added ListView::viewParams (qiangxue)
45
- Enh #1469: ActiveRecord::find() now works with default conditions (default scope) applied by createQuery (cebe)
46
- Enh #1476: Add yii\web\Session::handler property (nineinchnick)
47
- Enh #1499: Added `ActionColumn::controller` property to support customizing the controller for handling GridView actions (qiangxue)
48
- Enh #1523: Query conditions now allow to use the NOT operator (cebe)
Alexander Makarov committed
49
- Enh #1552: It is now possible to use multiple bootstrap NavBar in a single page (Alex-Code)
50
- Enh #1572: Added `yii\web\Controller::createAbsoluteUrl()` (samdark)
51
- Enh #1579: throw exception when the given AR relation name does not match in a case sensitive manner (qiangxue)
52
- Enh #1581: Added `ActiveQuery::joinWith()` and `ActiveQuery::innerJoinWith()` to support joining with relations (qiangxue)
Qiang Xue committed
53
- Enh #1601: Added support for tagName and encodeLabel parameters in ButtonDropdown (omnilight)
54
- Enh #1611: Added `BaseActiveRecord::markAttributeDirty()` (qiangxue)
55
- Enh #1633: Advanced application template now works with MongoDB by default (samdark)
56
- Enh #1634: Use masked CSRF tokens to prevent BREACH exploits (qiangxue)
57
- Enh #1641: Added `BaseActiveRecord::updateAttributes()` (qiangxue)
Mark committed
58
- Enh #1646: Added postgresql `QueryBuilder::checkIntegrity` and `QueryBuilder::resetSequence` (Ragazzo)
59
- Enh #1645: Added `Connection::$pdoClass` property (Ragazzo)
60
- Enh #1681: Added support for automatically adjusting the "for" attribute of label generated by `ActiveField::label()` (qiangxue)
61
- Enh #1706: Added support for registering a single JS/CSS file with dependency (qiangxue)
Carsten Brandt committed
62
- Enh #1773: keyPrefix property of Cache is not restricted to alnum characters anymore, however it is still recommended (cebe)
63
- Enh #1809: Added support for building "EXISTS" and "NOT EXISTS" query conditions (abdrasulov)
Alexander Kochetov committed
64
- Enh #1852: ActiveRecord::tableName() now returns table name using DbConnection::tablePrefix (creocoder)
65
- Enh #1894: The path aliases `@webroot` and `@web` are now available right after the application is initialized (qiangxue)
66
- Enh #1921: Grid view ActionColumn now allow to name buttons like `{controller/action}` (creocoder)
67
- Enh #1973: `yii message/extract` is now able to generate `.po` files (SergeiKutanov, samdark)
Luciano Baraglia committed
68
- Enh: Added `favicon.ico` and `robots.txt` to default application templates (samdark)
69
- Enh: Added `Widget::autoIdPrefix` to support prefixing automatically generated widget IDs (qiangxue)
70
- Enh: Support for file aliases in console command 'message' (omnilight)
71
- Enh: Sort and Pagination can now create absolute URLs (cebe)
72
- Enh: Added support for using array-typed arguments for console commands (qiangxue)
73
- Enh: Added support for installing packages conforming to PSR-4 standard (qiangxue)
74
- Enh: Better exception message when class cannot be loaded (samdark)
75
- Enh: `init` of advanced application now allows to specify answer for overwriting files via `init --overwrite=n` (samdark)
76
- Enh #1839: Added support for getting file extension and basename from uploaded file (anfrantic)
77
- Chg #1519: `yii\web\User::loginRequired()` now returns the `Response` object instead of exiting the application (qiangxue)
78
- Chg #1586: `QueryBuilder::buildLikeCondition()` will now escape special characters and use percentage characters by default (qiangxue)
79
- Chg #1610: `Html::activeCheckboxList()` and `Html::activeRadioList()` will submit an empty string if no checkbox/radio is selected (qiangxue)
80
- Chg #1643: Added default value for `Captcha::options` (qiangxue)
Alexander Makarov committed
81
- Chg #1796: Removed `yii\base\Controller::getActionParams()` (samdark)
82
- Chg #1835: `CheckboxColumn` now renders checkboxes whose values are the corresponding data key values (qiangxue)
83
- Chg #1821: Changed default values for yii\db\Connection username and password to null (cebe)
84
- Chg #1844: `Response::sendFile()` and other file sending methods will not send the response (qiangxue)
Alexander Kochetov committed
85
- Chg #1852: DbConnection::tablePrefix default value now 'tbl_' (creocoder)
86
- Chg: Renamed `yii\jui\Widget::clientEventsMap` to `clientEventMap` (qiangxue)
87
- Chg: Renamed `ActiveRecord::getPopulatedRelations()` to `getRelatedRecords()` (qiangxue)
88
- Chg: Renamed `attributeName` and `className` to `targetAttribute` and `targetClass` for `UniqueValidator` and `ExistValidator` (qiangxue)
89
- Chg: Added `yii\widgets\InputWidget::options` (qiangxue)
90
- Chg: Changed the signature of `urlCreator` and button creators for `yii\gridview\ActionColumn` (qiangxue)
91
- Chg: Updated HTMLPurified dependency to `4.6.*`.
92
- Chg: Changed Yii autoloader to support loading PSR-4 classes only (i.e. PEAR-styled classes not supported anymore) (qiangxue)
Alexander Makarov committed
93 94
- 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)
95
- Chg: Advanced app template: moved database connection DSN, login and password to `-local` config not to expose it to VCS (samdark)
96
- New #66: [Auth client library](https://github.com/yiisoft/yii2-authclient) OpenId, OAuth1, OAuth2 clients (klimov-paul)
97
- New #1393: [Codeception testing framework integration](https://github.com/yiisoft/yii2-codeception) (Ragazzo)
98
- New #1438: [MongoDB integration](https://github.com/yiisoft/yii2-mongodb) ActiveRecord and Query (klimov-paul)
Qiang Xue committed
99
- New: Yii framework now comes with core messages in multiple languages
Qiang Xue committed
100 101

2.0.0 alpha, December 1, 2013
102
---------------------------
103

104
- Initial release.
105 106 107 108 109 110 111 112 113
- 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
114
  - [Sphinx integration](https://github.com/yiisoft/yii2-sphinx): ActiveRecord and Query
115 116 117 118 119

  - [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)