2412 Commits

Author SHA1 Message Date
d1037db68d Fix #18499: When using yii\db\Query::all() and yii\db\Query::$indexBy, the yii\db\Query::$indexBy is auto inserted into yii\db\Query::$select - the same as in yii\db\Query::column()
Co-authored-by: Bizley <pawel@positive.codes>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-02-23 18:44:39 +03:00
95c2d214d9 Fixed typo in di container guide 2021-02-02 22:48:07 +03:00
e2f286e96d Add more examples for exists and unique validators 2021-01-11 14:48:16 +03:00
1d514e2ded Revert "Fix anchors in docs (#18344)"
This reverts commit 0f4b147352f2524f2a1530d419d13a8c8acd5069.
2020-11-05 14:14:35 +03:00
0f4b147352 Fix anchors in docs (#18344) 2020-11-01 17:51:16 +03:00
23cfb38cea Fix #18285: Enhanced DI container to allow passing parameters by name in constructor 2020-11-01 00:31:27 +03:00
840083724e Fix #18351: Added option to change default timezone for parsing formats without time part in yii\validators\DateValidator 2020-10-31 15:59:20 +03:00
ce088e05df Fix #18247: Added support for the 'session.use_strict_mode' ini directive in yii\web\Session 2020-10-31 11:58:34 +03:00
8651a79716 Update tutorial-core-validators.md (#18348)
The `DefaultValueValidator` works only with closures not with any callable as suggested.
See f8337a15c2/framework/validators/DefaultValueValidator.php (L47)

```
    /**
     * {@inheritdoc}
     */
    public function validateAttribute($model, $attribute)
    {
        if ($this->isEmpty($model->$attribute)) {
            if ($this->value instanceof \Closure) {
                $model->$attribute = call_user_func($this->value, $model, $attribute);
            } else {
                $model->$attribute = $this->value;
            }
        }
    }
```
2020-10-29 11:32:14 +03:00
1972741bae Install codeception as a dev dependency (#18277) 2020-09-10 19:54:56 +03:00
c6cba1dff3 Minor typo for ActiveRecord doc (#18246) 2020-08-20 18:46:59 +03:00
8885ec55e4 Allowlist instead of white list [ci skip] (#18240) 2020-08-18 16:16:37 +03:00
d62590807d Fix #18051: Fix using EachValidator with custom validation function 2020-07-06 16:18:03 +03:00
cf6a98fac4 Fix #18061: Mentioned session.use_strict_mode php.ini setting in "Sessions and Cookies" guide 2020-07-03 15:53:19 +03:00
5adb556151 Adding some important hints for IIS Configuration (#18112)
- Mention the term **Web site** of IIS that acts as Virtual Hosts in other servers.
- Introducing a list of helpful official IIS resources.
2020-06-18 00:52:19 +03:00
385fe13d66 Revert #18102 since renaming is technically problematic (#18109) 2020-06-17 13:40:17 +03:00
ba7106564d blacklist → exclude (#18104) 2020-06-14 23:55:24 +03:00
472600ee3f Fix #18102: Use “primary”/“replica” terminology instead of “master”/“slave” 2020-06-14 00:12:10 +03:00
Sam
4ea484ca68 Fix #17722: Add action injection support 2020-06-12 10:06:18 +03:00
87a9beaede Add NGINX Unit config to start-installation.md (#18079) 2020-06-05 00:19:34 +03:00
a66fac3bb1 Fix #17758: Query::withQuery() can be used for CTE 2020-04-13 11:58:18 +03:00
68832c8f6d Fix #17928: Fix broken link in "Response Formatting" 2020-03-24 01:32:59 +03:00
a04055579e Add detail transport properties in tutorial mailing [skip ci] 2020-02-14 13:12:35 +03:00
1378ca03ba Fix incorrect info in start-installation.md (#17821) [skip ci] 2020-01-22 22:48:34 +03:00
559206bc78 Fix #17635: Fix varbinary data handling for MSSQL 2020-01-16 19:19:34 +03:00
ad83952197 Improved explanation in start-database.md (#17748) [skip ci] 2020-01-10 12:18:18 +03:00
5e71b11d8d #17733: Additional fixes for #17665, Forwarded header parsing in Request
- Remove header from secure headers
- Regexp and return null fix
- Fix tests, fix in array case sensitivity, rx duplicated group name
- Simplify code
- Add phpdoc

Co-Authored-By: Alexander Makarov <sam@rmcreative.ru>
2019-12-17 21:53:55 +03:00
3850e663e8 Fix code example [skip ci] 2019-12-13 23:09:11 +03:00
72e8b911fe Fix #17675: Replace incorrect <script example with correct one in <style [skip ci] 2019-12-12 23:47:41 +03:00
620d963493 docs: more readable command [skip ci] (#17716) 2019-12-06 16:02:08 +03:00
ef33af645d Correct typo: "mutli-server" > "multi-server" [skip ci] 2019-11-29 12:13:15 +03:00
ed7e966cef Simply way to join to slack channel (#17680) 2019-11-21 23:49:33 +03:00
da626f507f Fix #17607: Added Yii version 3 DI config compatibility
- Allow `__class` and `__construct()` in configurations
- Allow wider use of `Instance::of`
- Allow static call DI definition like: `[SomeFactory::class, 'createMethod']`
- Add support for `__class` in `createObject`
2019-10-17 14:01:00 +03:00
e5ab48e9d8 #17521 typo (#17599) [skip ci] 2019-10-07 13:25:38 +03:00
aac8e3cec6 Already resolved IP: doc added #17521 (#17596) [skip ci] 2019-10-06 14:58:33 +03:00
bde939dee3 Remove Yii 2.1 reference from DAO docs (#17582) [skip ci] 2019-10-01 13:26:20 +03:00
23202244b4 Fix #16676: Set gridview ID explicitly so example works out of the box [skip ci] 2019-09-17 17:41:23 +03:00
0dd5e370df Add IIS configuration to getting started guide section (#13712) [skip ci]
Supposing configurations for IIS to host Yii2 application. The reference of the code is the following question's answer on Stack Overflow:
http://stackoverflow.com/questions/30470618/iis-and-yii2-pretty-url
2019-09-17 14:13:36 +03:00
4a9c82f9ab Fix typos in documentation, update Japanese translation (#17551) [skip ci] 2019-09-09 17:06:25 +03:00
f72f7c7406 Remove dead link mention [skip ci] 2019-08-21 02:31:17 +03:00
405c83cf34 Add note about adding module to console config in order to register commands [skip ci] 2019-08-19 11:29:46 +03:00
e615f0f43e Fix minor typos in fixture guide (#17488) [skip ci]
* Fix typo with `grabFixture()` (remove second argument)
* Use lowercase for filename placeholders to better match real filenames
* Add some missing articles for better readability
2019-08-01 13:18:34 +03:00
e50a07c30c Fix #17437: Fixed generating namespaced migrations 2019-07-23 17:28:43 +03:00
f984f02f4f Update input-file-upload.md to include note on changing field name (#17385) [skip ci] 2019-06-21 00:10:27 +03:00
8fb5b35cc5 Closes #17372. Fix documentation for the ArrayHelper::multisort() (#17375) 2019-06-18 14:17:16 +03:00
0165416c79 Update path configuration for composer-asset-plugin (#17347)
Composer install don't take "installer-paths" on the level of "config". The path which works: "config" => "fxp-asset" => "installer-paths"
2019-06-11 16:25:31 +03:00
1ed6ec1e5c Fixes #17353: Added sameSite support for yii\web\Cookie and yii\web\Session::cookieParams 2019-06-11 00:33:36 +03:00
1f3e89d056 Fixes #17331: Adjusted docs to state that console command option position does not matter [skip ci] 2019-05-29 17:36:31 +03:00
7e05e956b3 Fix typo in db-active-record.md (#17317) [skip ci] 2019-05-22 17:03:04 +03:00
25672a94d1 Fix syntax error in Query builder docs (#17281) [skip ci] 2019-04-20 21:18:03 +03:00