Dmitry Dorogin
8ae2223c6a
Fixes #14370 : Fixed creating built-in validator in model with same function name
7 years ago
Alexander Makarov
1f26db9fb7
Applied code style fixes
7 years ago
Alexander Makarov
acf29e0001
Fixes #14492 : Fixed error handler not escaping error info debug mode
7 years ago
Dmitry Dorogin
21d2d72534
Fixes #14487 : Changed i18n message error to warning
7 years ago
Sergey Makinen
92d2245ca6
Add support for an older SQLite in constraints ( fixes #14483 ) ( #14497 )
7 years ago
Dmitry Dorogin
6d2e0aff82
Fixes #14406 : Fixed caching rules in `yii\web\UrlManager` with different `ruleConfig` configuration
7 years ago
Carsten Brandt
393fc2744a
Added yii\base\Object for backwards compatibility
...
fixes #7936
close #14478
7 years ago
Carsten Brandt
69673c0c94
Rename Object -> BaseObject for PHP 7.2 compatibility
...
issue #7936
7 years ago
Carsten Brandt
d4e584f7a7
UPGRADE notes for Object -> BaseObject for PHP 7.2 compatibility
...
issue #7936
7 years ago
PowerGamer1
40e242b562
Fixes #14469 : updated RFC links [skip ci]
7 years ago
Nikolay Oleynikov
ea33bbd369
Fix docs of a base file helper ( #14477 ) [skip ci]
7 years ago
Alexander Makarov
d38908fc13
Fixed #14469 : updated RFC links
7 years ago
Alexander Makarov
062e1c7e67
Uppercased HTTP methods as required by RFC [skip ci]
7 years ago
Alex
59002a9e1e
Fixes #6644 : Added `yii\helpers\ArrayHelper::setValue()`
7 years ago
Carsten Brandt
2f9f15bf92
Fixes #14188 : Add constants and function for sysexits(3) to `ConsoleHelper`
7 years ago
Alexander Makarov
0adae899ce
Additional fix for SluggableBehavior immutability after merge of #13449
7 years ago
Boudewijn Vahrmeijer
03d53b785d
Fixes #14449 : Fix PHP 7.2 compatibility bugs and add explicit closure support in `yii\base\Application`
7 years ago
SilverFire - Dmitry Naumenko
b0162d3a48
Revert "Fixes #14294 : Added `InputWidget::renderInput()` to move behavior described in `InputWidget` class docs to the class itself"
...
This reverts commit a5b393a3c1
.
See https://github.com/yiisoft/yii2/pull/14441#issuecomment-315127527 for reasons
7 years ago
Carsten Brandt
a5b393a3c1
Fixes #14294 : Added `InputWidget::renderInput()` to move behavior described in `InputWidget` class docs to the class itself
7 years ago
Robert Korulczyk
2fa4ccc1da
Fix phpdoc for $_master and $_slave properties in yii\db\Connection ( #14447 )
7 years ago
Carsten Brandt
6fa48eab38
Update CHANGELOG for #14206
7 years ago
Dmitry Dorogin
6e223e6db2
Fixes #14423 : Fixed `ArrayHelper::merge` behavior with null values for integer-keyed elements
7 years ago
nikosid
fe607b83d2
Fixes #14434 : fixed metadata cache regression
7 years ago
Carsten Brandt
445019779f
Fixes #14206 : `MySqlMutex`, `PgsqlMutex` and `OracleMutex` now use `useMaster()` to ensure lock is aquired on the same DB server
7 years ago
qihuajun
f5e8a89319
Fix slave usage disabled after Connection::close, set _slave to false instead of nulll
...
fixes #14165
close #14168
7 years ago
Carsten Brandt
c9347b0a57
Fixed ambiguous column error on indexBy with JOIN
...
fixes #13859
close #14431
7 years ago
Carsten Brandt
173108b5b0
Move getTablesUsedInFrom() from ActiveQuery to Query
...
enable this feature on the Query level
close #14431
7 years ago
Carsten Brandt
0070b97837
allow migrate/mark to mark the history base ( #14428 )
...
fixes #7890
7 years ago
yyxx9988
46bf3c410a
Add `yii\web\Request::getOrigin()` method that returns HTTP_ORIGIN of current CORS request
...
>The Origin request header indicates where a fetch originates from. It doesn't include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn't disclose the whole path.
From https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
Working code samples
```php
<?php
// We'll be granting access to only the arunranga.com domain
// which we think is safe to access this resource as application/xml
if($_SERVER['HTTP_ORIGIN'] == "http://arunranga.com ") {
header('Access-Control-Allow-Origin: http://arunranga.com ');
header('Content-type: application/xml');
readfile('arunerDotNetResource.xml');
} else {
header('Content-Type: text/html');
echo "<html>";
echo "<head>";
echo " <title>Another Resource</title>";
echo "</head>";
echo "<body>",
"<p>This resource behaves two-fold:";
echo "<ul>",
"<li>If accessed from <code>http://arunranga.com </code> it returns an XML document</li>";
echo "<li>If accessed from any other origin including from simply typing in the URL into the browser's address bar,";
echo "you get this HTML document</li>",
"</ul>",
"</body>",
"</html>";
}
?>
```
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Server-Side_Access_Control for more info.
close #13835
7 years ago
Carsten Brandt
0559a95db9
Fixed ambiguous column error in `BaseActiveRecord::refresh()`
...
when the query adds a JOIN by default
fixes #13757
7 years ago
Robert Korulczyk
d2781cd232
Added configuration for headers in PHP files generated by `message/extract` command ( #14417 )
7 years ago
Robert Korulczyk
a50d9d8e3e
Enable `include` rule in php-cs-fixer ( #14418 )
7 years ago
Robert Korulczyk
12eb936083
Enable `heredoc_to_nowdoc` rule in php-cs-fixer ( #14419 )
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
7 years ago
Carsten Brandt
a7d2aaffd5
mention usage of deleteAll() in AR unlinkAll
...
issue #14410
7 years ago
Carsten Brandt
583a1da16c
CHANGELOG for #14105
7 years ago
Carsten Brandt
53f380ca46
improved docs of Query::from()
...
fixes #14407
7 years ago
Carsten Brandt
f67d8d5a79
Fixed broken error page when calling an undefined method
...
fixes #14269
7 years ago
Carsten Brandt
93f88bb7db
mention defaultRoles in getRolesByUser() docs
...
fixes #14393
7 years ago
Alex
266bfc0419
fix phpDoc [skip ci] ( #14394 )
...
* fix phpDoc [skip ci]
* fix phpDoc [skip ci]
7 years ago
Konstantin Tsukur
cb09e1e463
calling getAttributeNames() only once
...
close #14389
7 years ago
Carsten Brandt
ef457c340d
added missing abstract methods to ConstraintFinderTrait
7 years ago
Carsten Brandt
888f9f87b6
avoid dependency of SqlTokenizer on sqlite implementation
7 years ago
Andrew Nester
d26493a287
Fixes #13378 : Added skipOnEmpty option to SluggableBehaviour
7 years ago
Sergey Makinen
ecf8984096
Mention an usage magic in descriptions
7 years ago
Sergey Makinen
f0c66c5a1d
Fix an unknown variable usage bug
7 years ago
Carsten Brandt
95950d1a23
updated phpdoc
7 years ago
Carsten Brandt
3e330f8b87
make schema cache version a constant
7 years ago
Sam
e34505caad
Refactored BlameableBehavior to call `$app->has()` to check for component existence ( #14185 )
7 years ago
Carsten Brandt
13d35c4e03
add notes to View register JS and CSS file methods
...
explain why assetmanager features are not available in these methods.
close #14382
related to #10297 , #9101
7 years ago