yii\web\UrlNormalizer
for normalizing requests with and without trailing slashes (rob006, cronfy, klimov-paul)UrlNormalizer
for normalizing requests with and without trailing slashes (rob006, cronfy, klimov-paul)yii\web\UploadedFile
returns parent instances in case invoked after it (andrewnester)yii\web\View
to respect yii\web\AssetManager::appendTimstamp
property (githubjeka, silverfire)yii\console\controllers\AssetController
looses custom options of ‘target’ bundles (petrabarus, klimov-paul)canGetProperty()
and canSetProperty()
returns false
for yii\db\BaseActiveRecord
attributes (klimov-paul, Ni-san)yii.js
AJAX prefilter (silverfire)Content-Disposition
header for file downloads (samdark)yii\console\controllers\AssetController
looses bundle override configuration, which makes it external one (klimov-paul)Response::EVENT_AFTER_SEND
handler (samdark, andrewnester)yii.activeForm.js
(silverfire)yii\widgets\Pjax::registerClientScript()
to pass custom container
to the PJAX JS plugin (silverfire)updateInputs()
method in yii.activeForm.js
to prevent reading property of undefined (silverfire)defaultValue
(pana1990, s-o-f)yii\web\DbSession
was echoing database errors in production mode (samdark, pastuhov, deadkrolik)yii\helpers\Console::getScreenSize()
on Windows was giving out width and height swapped (Spell6inder, samdark, cebe)yii.getQueryParams()
to handle +
(plus) character properly (silverfire)yii\log\FileTarget
does not apply fileMode
for rotated via copy files (klimov-paul)gridData
initialization in yii.gridView.js
(pavlm)yii\widgets\ActiveField::end()
generates close tag when it’s option['tag']
is null
(egorio)yii\rest\Serializer::serialize()
serializes DataProvider incorrectly, if models keys do not compose integer sequence (dcb9, klimov-paul)yii\db\BaseActiveRecord::refresh()
may set incorrect oldAttributes
values at some cases (only-victor)for
field label attribute for active form RadioList
and CheckboxList
(shevchik87, samdark)yii\base\Model::offsetExists()
throws an exception on un-existing field (klimov-paul)yii\helpers\Json::encode()
encodes empty array returned by JsonSerializable::jsonSerialize()
as object (klimov-paul)./yii migrate/create
was generating wrong code when using bigPrimaryKey
(VojtechH, samdark)LEVEL_PROFILE
for the syslog target (Mak-Di)yii\filters\HttpCache
was sending an empty Pragma header (sergeymakinen)yii\db\BaseActiveRecord::updateAttributes()
change isNewRecord
state for the new model (klimov-paul)yii\validators\UniqueValidator
custom message when validating multiple attributes (rob006)yii\db\mssql\Schema::resolveTableNames()
when using linked database tables (hAppywAy)$thousandSeparator
was explicitly set (cebe)yii\db\mysql\QueryBuilder
causes warning when insert default rows into a table without primary key (DrmagicE)yii\mutex\FileMutex::release()
(rob006)yii\web\Request::getBodyParams()
does not pass full ‘content-type’ value to yii\web\RequestParserInterface::parse()
(klimov-paul)StringHelper:truncateHtml
(Alex-Code)yii\validators\UniqueValidator
error of getting first model indexed by field (DrDeath72)binary()
type for MSSQL (silverfire)yii\widgets\ActiveField::widget()
to call adjustLabelFor()
for InputWidget
descendants (coderlex)indexBy
handling for yii\db\Query::column()
(silverfire)yii\console\controllers\BaseMigrateController::$migrationNamespaces
(klimov-paul)yii\web\MultipartFormDataParser
, which allows proper processing of ‘multipart/form-data’ encoded non POST requests (klimov-paul)yii\console\controllers\BaseMigrateController::migrationNamespaces
(klimov-paul)yii\console\controllers\AssetController::deleteSource
option allowing deletion of the source asset files after compression (pana1990, klimov-paul)yii\data\Sort::setAttributeOrders()
method allowing manual setup of current sort (klimov-paul)yii\rbac\ManagerInterface::getChildRoles()
method, allowing finding child roles for the given one (githubjeka)yii\helpers\ArrayHelper::merge()
(mdmunir, rob006)yii\web\Request::getHostName()
method that returns hostname of current request (rob006)yii.reloadableScripts
now support wildcards with *
character (silverfire)yii\grid\ActionColumn::urlCreator
callback, which holds reference to the column instance (klimov-paul)yii\behaviors\AttributeTypecastBehavior
for maintaining of strict ActiveRecord attribute types (klimov-paul)\yii\db\mssql\QueryBuilder::$typeMap[TYPE_TEXT]
- NTEXT
data type was deprecated in MSSQL (githubjeka)\yii\widgets\DetailView
(githubjeka)yii\helpers\BaseArrayHelper::keyExists()
speed (egorio)yii\mutex\OracleMutex
which implements mutex “lock” mechanism via Oracle locks (zlakomanoff)yii\base\ViewNotFoundException
which is thrown when views file doesn’t exists, used it in ViewAction
(samdark)yii\base\Model::attributeHints()
(PowerGamer1)jQuery.on(
instead of event method to ensure forwards compatibility (newerton)yii\filters\HttpCache
no longer returns 304 HTTP code when callbacks return null (sergeymakinen)yii\helpers\Html::errorSummary()
. Added the ability to display error messages beyond the first error for each model attribute (PowerGamer1)time
and datetime
validator short names (nkovacs)yii\log\Target::setLevels()
(Mak-Di)yii.activeForm.js
validate()
method to be able to force validation (DrDeath72)yii\widgets\MaskedInput
to use jQuery
instead of $
to prevent conflicts (samdark)yii\base\Event::offAll()
method allowing clear all registered class-level event handlers (klimov-paul)yii.activeForm.js
will run it forcefully on form submit to display all possible errors (silverfire)yii.js
comply with strict and non-strict javascript mode to allow concatenation with external code (mikehaertl)optional
at yii\filters\auth\AuthMethod
(mg-code)afterInit
event to yii.activeForm.js
(werew01f)yii\console\controllers\AssetController::getAssetManager()
automatically enables yii\web\AssetManager::forceCopy
in case it is not explicitly specified (pana1990, klimov-paul)inverseOf()
not working for dynamic relational queries (laszlovl)yii\grid\DataColumn::getHeaderCellLabel()
to extract attribute label from the filterModel
of Grid (silverfire)beforeValidate
wasn’t triggered in some cases (lynicidn)ActiveRecord::hasAttribute()
to avoid cases where it returns true when a number is passed to it (Faryshta)yii\validators\UniqueValidator
for composite targetAttribute
(PowerGamer1, silverfire, cebe)yii\i18n\PhpMessageSource::loadFallbackMessages()
not to log error when source and language is same, but locales are different (silverfire)session.auto_start = 1
set in php.ini (cartmanchen)yii\validators\EachValidator::validateAttribute()
does not respect skipOnEmpty
rule parameter (webdevsega)yii\web\User::checkRedirectAcceptable()
to treat acceptable content type */*
as *
(silverfire)bigPrimaryKey()
for SQLite (dynasource)yii\i18n\MessageFormatter
construction exception caught for PHP 7 compatibility (subdee, cebe)null
resulting in integrity constraint violation for not null columns (samdark)QueryBuilder
IN
condition anymore (cebe)yii\helpers\ArrayHelper::getValue()
to work properly with float keys (zsounder, AnikanovD)yii\db\ColumnSchemaBuilder
to work with custom column types (andrey-mokhov, silverfire)schema-oci.sql
for RBAC (jonny7)yii\validators\NumberValidator
erroring when value is an object without __toString()
method (SamMousa)yii\helpers\ArrayHelper::isIn()
comparison did not work in strict mode (taobig)yii\db\QueryBuilder::batchInsert()
calls with no data to insert (rob006)yii\web\UploadedFile
to return null
when there’s no file uploaded (brummm)yii\helpers\ArrayHelper::index()
losing precision for float keys (AnikanovD)yii\helpers\FileHelper
(AnikanovD)yii\widgets\Pjax
to properly respond with partials when custom selector is used for container (pigochu, samdark)mb_substr()
with PHP < 5.4.8 where length of NULL was treated the same as 0 (samdark)selected
for dropdown list using options (samdark)yii\web\User::loginByCookie()
in order to make it easier to override (maine-mike, silverfire)yii\db\ColumnSchemaBuilder::null()
when default value is set to null
. (rob006)yii\rbac\PhpManager
now invalidates script file cache performed by ‘OPCache’ or ‘APC’ on file saving (klimov-paul)null
method on yii\db\ColumnSchemaBuilder
to explicitly set column nullability (nevermnd)yii\helpers\BaseHtml
now uses abstracted booleanInput()
and activeBooleanInput()
methods to render radio()
, checkbox()
, activeRadio()
and activeCheckbox()
(cesarnicola)yii\i18n\GettextPoFile::save()
(stevekr)null
in yii\web\AssetBundle
won’t be registered (Razzwan)yii\db\oci\Schema::findColumns()
(SSiwek)yii\web\Response
(dasmfm)yii\helpers\Markdown
default flavor (mdmunir)yii\log\Target::logVar
(HaruAtari)yii\helpers\BaseArrayHelper::filter()
method (HaruAtari)yii\db\oci\Schema::loadTableSchema()
for Oracle DBMS (SSiwek)yii\data\ArrayDataProvider::$modelClass
property to specify a model used to provide column labels even when data array is empty (PowerGamer1)only
and except
at yii\base\ActionFilter
(klimov-paul)yii\rbac\CheckAccessInterface
from yii\rbac\ManagerInterface
(SamMousa, samdark, mdomba)yii\grid\CheckboxColumn::$cssClass
property to specify a class added to checkbox input (thiagotalma)_table
and _column
suffixes are now required when generating migration (rob006)yii\widgets\Pjax::$submitEvent
to be able to customize event triggering PJAX form submit (Bvanleeuwen)yii\filters\AccessRule::$verbs
can now be configured in upper and lowercase (DrDeath72, samdark)1.12.*
(cebe)yii fixture "*, -User"
should be used instead of yii fixture "*" -User
(Faryshta, samdark)yii\widgets\ActiveField
to handle inputs AJAX validation with changed ID properly (dizeee)$properties
parameter in ArrayHelper::toArray()
was not passed to recursive calls (quantum13)$('#grid').yiiGridView('getSelectedRows')
when GridView::$showHeader
is set to false (NekitoSP, silverfire)yii\validators\EachValidator
does not invoke validateAttribute()
method of the embedded validator (klimov-paul)yii\console\Application::runAction()
to not to corrupt response object (hiqsol)yii\web\Request::getBodyParams()
returned null
instead of empty array if request body is empty and content type is application/json (samdark)yii\grid\CheckboxColumn
to set correct value when yii\grid\CheckboxColumn::$checkboxOptions
closure is used (nukkumatti)yii\widgets\MaskedInput
(rahimov, klimov-paul)yii\i18n\MessageFormatter
for formatting messages when not all parameters are given (laxity7, cebe)yii\web\UrlManager::createUrl()
(sammousa)yii\db\mysqlSchema::findConstraints()
(silverfire)yii.js
- fixed error in ajaxPrefilter event handler, caused by blocked frame (maximal)yii\web\UploadedFile::getBaseName()
to work with UTF-8 file names (hiscaler, silverfire)yii\helpers\StringHelper::truncateWords()
to count words properly for non-English text (samdark, tol17)yii\i18n\Formatter::asDuration()
(VirtualRJ)HtmlPurifier
configuration sequence (samdark)yii.js
- fixed getQueryParams()
function to handle URLs with anchors correctly (DrDeath72)yii\db\QueryBuilder::buildAndCondition()
to add query params passed directly by yii\db\Expression
(CedricYii, silverfire)JSON_ERROR_SYNTAX
for json_decode(null)
in PHP 7 (fps01)yii\widgets\FragmentCache
not handling empty content correctly in all cases (kidol)CaptchaAction
when calling imagefilledrectangle
(alsopub)__PHP_Incomplete_Class
(DamianZ)yii.activeForm.js
- AJAX validation will not be triggered if client side validation failed (silverfire)yii\db\BaseActiveRecord::link()
method in order to support closure in indexBy
for relations declaration (iushev)yii\console\controllers\BaseMigrateController
, like the one for MongoDB, unable to create new migration (klimov-paul)TYPE_BIGPK
(cebe)DateValidator
(VirtualRJ, cebe)yii\validators\Validator::$attributes
property now supports !attribute
notation to validate attribute, but do not mark it as safe (mdmunir)yii\db\Query
now contains a andFilterCompare() method that allows filtering using operators in the query value (lennartvdd)yii\validators\DateValidator
skip validation for timestampAttribute
, if it is already in correct format (klimov-paul)enctype
form option when using file input field (pana1990, arogachev)after()
and first()
column schema builder modifiers (df2)yii\db\Query::exists()
now uses SQL standard EXISTS()
query via new yii\db\QueryBuilder::selectExists()
method to improving performance in some cases (PowerGamer1)char
datatype to framework (df2)yii\db\BaseActiveRecord
now triggers event EVENT_AFTER_REFRESH
after a record is refreshed (raoul2000)yii.js
handleAction enhanced to support for data-form attribute, so links can trigger specific forms (SamMousa)yii\web\UrlManager
rule cache key into $cacheKey
protected property (lordthorzonus)formtarget
attribute of submit button (AnatolyRugalev)$_SERVER
in yii\web\Request
before using it (quantum13)getUrlFromCache()
and setRuleToCache()
protected methods from yii\web\UrlManager::createUrl()
(dmdark)yii\helpers\BaseArrayHelper::index()
got a third parameter $groupBy
to group the input array by the key in one or more dimensions (quantum13, silverfire, samdark)BaseUrl::$urlManager
to be able to set URL manager used for creating URLs (samdark)yii\grid\DataColumn::renderHeaderCellContent()
to make code simpler (t-kanstantsin, samdark)yii\helpers\FileHelper::copyDirectory()
is now throwing exception when trying to copy a directory to itself or a subdirectory (wallysalami, cebe, samdark)yii\helpers\Html::tag()
and ::beginTag()
return content without any HTML when the $tag
attribute is false
or null
(pana1990)yii\console\Controller::optionAliases()
method to support aliases for commands (pana1990)__toString()
of column schema builder now adapts to column types (df2)yii\di\Container
on Yii::$app
(SamMousa)yii\web\User
will now confirm the request accepts an HTML response before redirecting to the login page. Added optional $checkAcceptHeader
to yii\web\User::loginRequired()
(sammousa)yii\helpers\ArrayHelper::isTraversable()
, added support for traversable selections for dropdownList, radioList and checkboxList in yii\helpers\Html
(sammousa)yii\db\QueryBuilder
now accepts Traversable
objects for in
condition (SamMousa, silverfire)yii\helpers\Inflector::transliterate()
now uses strtr
instead of str_replace
(DrDeath72)yii\behaviors\AttributeBehavior::$skipUpdateOnClean
which determines whether to skip a behavior when the behavior owner has not been modified (Faryshta)yii\log\Dispatcher
in configuration (bionoren, cebe)yii\web\User::loginRequired()
now does not set return URL when request method is not GET (dawei101, silverfire)yii\filters\HttpCache
. It could be turned on via setting $weakEtag
to true
(particleflux)yii\validators\EachValidator
injects specific attribute value in error message parameters (silverfire)useTablePrefix
(Faryshta)yii\base\Security
enhancements (tom--, samdark)
/dev/urandom
and /dev/random
./dev/random
to /dev/urandom
when running on FreeBSD.$hostInfo
, $scriptUrl
, and $pathInfo
in yii\web\Request
and $baseUrl
, and $hostInfo
in yii\web\UrlManager
to null
, to make Yii determine the value again (cebe)yii\helpers\StringHelper::countWords()
that given a string returns number of words in it (samdark)ActiveRecordInterface::populateRelation()
to respect the methods called by the implementation (SamMousa)yii\rbac\ManagerInterface::canAddChild()
(dkhlystov, samdark)yii\helpers\BaseArrayHelper::isIn()
and isTraversable()
since now throw yii\base\InvalidParamException
instead of InvalidArgumentException
(nukkumatti)yii\db\ActiveRecord::unlink()
is not setting FK to null
before deleting itself anymore (samdark)~4.6
(samdark)yii\mutex\PgsqlMutex
which implements mutex “lock” mechanism via PgSQL locks (nineinchnick, CSharpRU)information_schema
tables instead of SHOW CREATE TABLE
to improve reliability (nineinchnick)yii\widgets\ActiveField
to handle inputs validation with changed ID properly (dynasource, cebe)yii\grid\CheckboxColumn
fixed _all
checkbox column name generation (cebe, silverfire)yii\helpers\BaseArrayHelper
fixed PHP Fatal Error: Nesting level too deep - recursive dependency? (andrewnester)yii\validators\FileValidator
to display error for tooBig
and tooSmall
with formatted unit (silverfire)yii\helpers\VarDumper::export()
unable to export circle referenced objects with Closure
(klimov-paul)yii.activeForm.js
: input onBlur event forces field validation (githubjeka)yii\i18n\Formatter::asSize()
or yii\i18n\Formatter::asShortSize()
(nxnx, cebe)yii\helpers\FileHelper::createDirectory()
directory creation to be concurrency friendly (dynasource)yii\rbac\DbManager::getPermissionsByUser()
not returning permissions directly assigned to a user (hesna)yii\console\controllers\MessageController
not using database connection specified in config (raccoon69, samdark)yii\web\AssetManager
to publish bundles using symlink with nested directories in hash
(silverfire)PDO::ATTR_CASE = PDO::CASE_LOWER
did not work anymore (cebe)yii\db\Migration::renameTable()
caused fatal error when using SQLite driver (fetus-hina)yii\db\Query::where()
does not add params from directly passed yii\db\Expression
(klimov-paul)yii.validation.js
code so it is compressable by YUICompressor (samdark, hofrob)yii\web\UrlManager::createAbsoluteUrl(['site/index', '#' => 'testHash'])
losing hash (alchimik, samdark)yii\web\Response::redirect()
- added check for X-Ie-Redirect-Compatibility
header (silverfire)yii\i18n\I18N::format()
wasn’t able to handle named placeholder in “selectordinal” (samdark)yii\helpers\Json::encode()
was erroring under CYGWIN (samdark)Html::activeFileInput()
had the wrong name if a name was explicitly given (graphcon, cebe)yii\rbac\PhpManager::updateItem()
unable to save users assignments (rezident1307)yii\web\Request
error when path info is empty (dynasource)yii\db\sqlite\QueryBuilder
to generate proper SQL for UNION (romeOz, samdark)Response::FORMAT_RAW
is used (nainoon)yii\db\Expression
to Query::select()
or ::addSelect()
was not handled correctly in all cases (cebe)yii\helpers\BaseStringHelper::explode()
code so it doesn’t remove items equal to 0 when skip_empty
is true (silverfire, kidol)yii.js
handleAction corrupted parameter values containing quote (“) character (silverfire)yii\web\UrlRule
to allow route parameter names with -
, _
, .
characters (silverfire)yii\widgets\MaskedInput
not working with PJAX (martrix78, samdark)yii\i18n\Formatter
to work with huge numbers on 32-bit arch (necrox87, silverfire)yii\rbac\PhpManager
(rezident1307)yii\validators\EmailValidator
to check the length of email properly (silverfire)yii\validators\UniqueValidator
to work properly when model is not instance of targetClass
(bupy7, githubjeka, silverfire)yii\helpers\BaseJson
support \SimpleXMLElement data (SilverFire, LAV45)yii.getQueryParams
, which parsed array variables incorrectly (servocoder, silverfire)yii\validators\CaptchaValidator
passed incorrect hashKey to JS validator when captchaAction
begins with /
(silverfire)yii\di\Instance::ensure()
to work with minimum settings (LAV45)Console
helper progress bar (youmad)yii\grid\GridView::guessColumns()
to work with numeric column names (silverfire)activeForm.js
- when submit doesn’t reload page, submit button value simulation with hidden input did not work (andrewnester)yii\helpers\BaseStringHelper
- BaseStringHelper::truncateHtml adds suffix regardless of the string length (andrewnester)yii\web\UrlManager::parseRequest()
to treat request URL with more than one slash at the end as invalid (andrewnester)yii\validators\UrlValidator
pattern to improve matching (silverfire)yii\widgets\DetailView::normalizeAttributes()
fixed for arrayable models (boehsermoe)yii\validators\EachValidator
does not respect skipOnEmpty
rule parameter (klimov-paul)ViewAction
pages (samdark)mb_*
functions calls to use UTF-8
or Yii::$app->charset
(silverfire)joinWith()
(cebe, nainoon)yii\validators\IpValidator
to perform validation of IP addresses and subnets (SilverFire, samdark)yii\db\ActiveQuery::alias()
to allow specifying a table alias for the model table without having to know the name (cebe, stepanselyuk)yii\i18n\Formatter::asDuration()
method (nineinchnick, SilverFire)yii\widgets\Pjax::options
now support special option tag
to specify tag of container (Alex-Code)yii\grid\ActionColumn
(fornit1917, silverfire)yii\filters\auth\AuthMethod::optional
for optional authentification in all child classes (SilverFire)yii\validators\CompareValidator
default messages (slinstj)RangeValidator
(RomeroMsk)yii\db\Connection::commandClass
to configure a command class that will be used by the connection (sammousa, silverfire, cebe)yii\captcha\CaptchaAction::$imageLibrary
property allowing to set image rendering library (AnatolyRugalev)message
console command (vchenin)yii\widgets\FragmentCache
will not store empty content anymore which fixes some problems related to yii\filters\PageCache
(kidol)yii\i18n\Formatter
(cebe, z-avanes, hooman-pro)yii\db\Expression
to Query::groupBy()
(cebe)yii\validators\FileValidator::maxFiles
can be set to 0
to allow unlimited count of files (PowerGamer1, silverfire)yii\db\ColumnSchemaBuilder::defaultExpression()
to support DB Expression as default value (kotchuprik)yii\web\Response::sendHeaders()
does now set the status header last which negates certain magic PHP behavior regarding the header()
function (nd4c, kidol)unsigned()
to ColumnSchemaBuilder
(samdark)yii\rbac\ManagerInterface::getUserIdsByRole()
and implementations (samdark)yii\grid\ActionColumn
header (arogachev, dynasource)yii\widgets\LinkPager::$pageCssClass
that allows to set default page class (ShNURoK42)yii\web\JsonResponseFormatter::$encodeOptions
and ::$prettyPrint
for better JSON output formatting (cebe)~3.2.2
(samdark)Cache.SerializerPermissions
configuration option for HTMLPurifier
is set to 0775
(klimov-paul)yii\grid\ActionColumn::$urlCreator
(freezy-sk)yii\helpers\BaseInflector::transliterate()
is now public. Introduced different levels of transliteration strictness (silverfire)csrf
option to Html::beginForm()
to allow disabling the hidden csrf field generation (machour)yii\base\Controller::viewPath
is now configurable (Sibilino)yii.confirm
context to the event’s target DOM element which is triggered by clickable or changeable elements (lichunqiang)yii\behaviors\SluggableBehavior
(cebe, hesna, silverfire)yii\db\Connection
serializable (Sam Mousa)RangeValidator::ranges
, added ArrayHelper::isIn()
and ArrayHelper::isSubset()
(Sam Mousa)yii\web\AssetBundle
(machour)Yii::powered()
now uses Yii::t()
(SamMousa)yii.gridView.js
(omnilight, silverfire)yii.js
- added original event passing to pjaxOptions
for links with data-method
and data-pjax
(servocoder, silverfire)yii\helpers\VarDumper::dump()
now respects PHP magic method __debugInfo()
(klimov-paul)yii/console/controllers/MessageController
(rmrevin)yii\helpers\BaseHtml::radiolist()
, ::checkboxList()
(TianJinRong, githubjeka, silverfire)yii\db\Expression
to yii\db\Query::orderBy()
and yii\db\Query::groupBy()
(andrewnester, cebe)yii\web\XMLResponseFormatter
changed to format models in a proper way (andrewnester)yii\i18n\DbMessageSource
(silverfire)yii\helpers\FileHelper::removeDirectory()
fail to unlink symlinks under Windows (samdark)yii\behaviors\AttributeBehavior::getValue()
now respects the callable in array format (silverfire)yii\web\ErrorHandler::displayVars
make list of displayed vars customizable. $_ENV
and $_SERVER
are not displayed by default anymore (silverfire)Yii::$app->user->can()
now returns false
instead of erroring in case authManager
component is not configured (creocoder)DetailView
now automatically sets container tag ID in case it’s not specified (samdark)Traversable
objects are now formatted as arrays in yii\web\XmlResponseFormatter
to support SPL objects and Generators (MaXL-ru)yii\base\Security
use random_bytes()
, LibreSSL, mcrypt, limit OpenSSL to Windows, and to prefer password_hash()
over crypt()
(tom--)yii\behaviors\TimestampBehavior::getValue()
changed to make value processing consistent with AttributeBehavior::getValue()
(silverfire)yii\caching\Cache
have been marked as deprecated (trejder, githubjeka)yii\behaviors\BlameableBehavior::getValue()
changed to make value processing consistent with yii\behaviors\AttributeBehavior::getValue()
(silverfire)trim
validator now passes the trimmed value to subsequent validators (nkovacs)yii\helpers\ArrayHelper::toArray()
wasn’t passing $recursive
to yii\base\Arrayable::toArray()
(brandonkelly)data-method
submit bug when client validation is used (vbelogai)yii\behaviors\TimestampBehavior::touch()
now throws an exception if owner is new record (klimov-paul)yii\i18n\Formatter
did not allow negative unix timestamps as input for date formatting (cebe)Schema::getLastInsertId()
was not properly quoted (nineinchnick)Widget::run()
conflicts with Pjax
widget which did the cleanup itself (cebe, joester89)yii\db\ActiveRecord
does not update attribute specified at optimisticLock()
after save (klimov-paul)yii\caching\FileCache
doesn’t lock cache files when reading (iworker)yii\pgsql\QueryBuilder::batchInsert()
may cause “undefined index” error (arkhamvm)yii\helpers\Html::activeTextarea()
does not allow value overriding via options (klimov-paul)yii\db\Command::getRawSql()
unable to parse params specified without colon (‘:’) (klimov-paul)yii\db\ActiveQuery
produces incorrect SQL for aggregations, when sql
field is set (klimov-paul)yii\rbac\DbManager::checkAccessFromCache()
to check against auth items loaded in cache recursively (achretien, qiangxue)yii\web\Response::xSendFile()
does not reset format (vyants)yii\db\Migration
produces incorrect results due to table schema caching (klimov-paul)yii.activeForm.js
scrolling to top (nkovacs)yii\db\ActiveQuery
failed removing duplicate records after join when the resultset did not contain the pk values e.g. after grouping (cebe)CONSTRAINT_TYPE
(nidgetgod)yii\widgets\Menu::isItemActive()
(demi)yii\filters\PageCache
not using the configured duration and dependency when caching the response data (kidol)yii\web\UrlManager::createUrl()
did not create correct url when defaults were used, internal cache is now skipped in certain situations (cebe)yii\helpers\mssql\QueryBuilder::renameColumn()
and yii\helpers\mssql\QueryBuilder::renameTable()
escaping (sitawit)yii\web\Request
ignore queryParams
when resolve request (zetamen)yii\db\BaseActiveRecord::unlink()
which may result in wrong comparison result for hash valued primary keys starting with 0e
(cebe)yii\console\Controller::options()
when default action was requested (cebe)yii\caching\FileCache
was not triggered (kidol)yii\db\ColumnSchemaBuilder
(pana1990, vaseninm, samdark, cebe)updateMessages()
to yii.activeForm.js
to support manually updating ActiveForm messages (nkovacs)yii\helpers\Html
(klimov-paul)STDIN
, STDOUT
, and STDERR
itself if they are not defined (cebe)yii\widgets\ActiveField
now uses corresponding methods for default parts rendering (klimov-paul)errorAttributes
parameter to ActiveForm afterValidate
event. Made scrolling to first error optional (nkovacs)yii\console\controllers\MessageController
now sorts created messages, even if there is no new one, while saving to PHP file (klimov-paul)yii\console\controllers\MessageController
improved allowing extraction of nested translator calls (klimov-paul)post_max_size
parameter in yii\validators\FileValidator::getSizeLimit()
(maxxer)yii\helpers\Html
allows correct rendering of conditional comments containing !IE
(salaros, klimov-paul)yii\widgets\LinkPager::$linkOptions
to allow configuring HTML attributes of the a
tags (zinzinday)maxlength
attribute for Html::activeTextArea()
and Html::activePassword()
(klimov-paul)yii\web\AssetManager::publish()
(klimov-paul)yii\console\controllers\MessageController
support .pot file creation (pgaultier)markUnused
option to yii\console\controllers\MessageController
(marius7383)yii\web\DbSession
(klimov-paul)yii\helpers\Html::escapeJsRegularExpression()
method from yii\validators\RegularExpressionValidator
(silverfire, klimov-paul, samdark, qiangxue)yii\db\pgsql\QueryBuilder::createIndex()
can now specify the index method to use (LAV45)yii\widgets\MaskedInput
to produce an input tag of a custom type (TriAnMan)FileCache
fails to write into file (foccy)yii\web\ErrorAction
displays 404 error instead of blank page on direct access (klimov-paul)yii migrate
command error. (RusAlex)Json
errors (grzegorzkurtyka, samdark)yii\web\UrlRule::getParamRules()
(df2)hashCallback
in yii\web\AssetManager
to allow custom hash generation for asset directory (petrabarus)yii\base\ErrorHandler::logException()
will now log the whole exception object instead of only its string representation (cebe)yii\web\User::getAuthManager()
method (samdark)yii\helpers\BaseStringHelper::truncateHtml()
is now using runtime
directory for HTMLPurifier
cache (webdevsega)ViewAction::resolveViewName()
not to accept /../
and /./
(thejahweh, samdark)RETURNING
for inserts for pgsql and oci to support PKs with a custom default value expression (nineinchnick, klimov-paul)data-confirm
in an yii\widgets\ActiveForm
may cause the dialog to appear twice (pana1990, qiangxue)yii\helpers\Html::dropDownList()
overrides label specified at ‘groups’ option (aktec, klimov-paul)yii\console\controllers\AssetController
does not create missing folders for the target bundles (schmunk42, klimov-paul)yii\web\Application::handleRequest()
and yii\widgets\Menu::items
if route element is not a first one (nkovacs, klimov-paul)yii\web\Response::sendContentAsFile()
that was broken in 2.0.3 (samdark)FormatConverter
to work with unicode characters (maddoger, cebe)yii\rbac\DbManager::getRolesByUser()
and yii\rbac\PhpManager::getRolesByUser()
to return roles only (samdark)PDO::ATTR_CASE
is set (nineinchnick)L
(nkovacs)yii\base\Model
does not recognize scenario declared by rules using ‘except’ (klimov-paul)yii\db\ColumnSchema
was typecasting numerics to strings with incorrect decimal separator for some locales (nineinchnick)yii\helpers\VarDumper::export()
fails to export object containing Closure
(klimov-paul)findUniqueIndexes()
not to perform any processing on unique index on function for pgsql (nineinchnick)yii\db\Schema::getLastInsertID()
` by quoting sequence name (nineinchnick)parseFloat()
call for the compare
js validator (CthulhuDen)yii\rbac\PhpManager::updateItem()
was unable to rename item updated (ChristopheBrun, samdark)yii\log\Logger
unable to export session id (klimov-paul)yii\db\Query::count()
fails for query containing ‘having’ without ‘group by’ (klimov-paul)yii\data\ArrayDataProvider::getKeys()
return wrong when yii\data\ArrayDataProvider::$allModels
contain integer key (mdmunir, klimov-paul)yii\db\BaseActiveRecord::getAttributeLabel()
return wrong label for related attribute, if several relations in chain share same name (klimov-paul)yii\db\BaseActiveRecord::updateCounters()
fails for new record saved with counter attribute not set (klimov-paul)yii\db\ActiveRelationTrait::populateRelation()
fails when link
refers to string convertable object attribute, like MongoId
(klimov-paul)yii\widgets\FragmentCache
when enabled
is false (nkovacs)$_GET
transformed to 0-based, if ‘pretty URL’ enabled (quantum13, klimov-paul)yii\helpers\Json::htmlEncode()
to support safer JSON data encoding in HTML code (samdark, Wojciech Janusz, Tomasz Tokarski)attributeHints()
method (klimov-paul)yii\validators\EachValidator
, which allows validation of the array attributes (klimov-paul)timestampAttribute
of date validator making it fully usable for validating complete timestamps (cebe)yii\helpers\FileHelper::createDirectory()
to include the path name of the directory (cebe)ignoreCategories
config option for message command to ignore categories specified (samdark)validateOnType
enabled no longer triggers validation (slinstj)yii\filters\auth\CompositeAuth::authMethods
to take authentication objects (fernandezekiel, qiangxue)$key
as an array at yii\helpers\ArrayHelper::getValue()
(Alex-Code)yii\helpers\StringHelper::explode()
to perform explode with trimming and skipping of empty elements (SilverFire, nineinchnick, creocoder, samdark)yii\validators\DateValidator
(nkovacs)indexBy()
together with column()
in query builder (qiangxue)yii\data\Sort
link labels in a ListView
when used with an ActiveDataProvider
(cebe)yii\console\controllers\AssetController
provides dependency trace in case bundle circular dependency detected (klimov-paul)yii help
now lists all sub-commands by default (callmez)YII_DEBUG
is false (samdark)yii\web\Session::getHasSessionId()
uses a more lenient way to check if session ID is provided in URL (robsch)yii\web\Request::validateCsrfToken()
to validate a manually provided token (miraage, qiangxue)yii\filters\PageCache::cacheCookies
and cacheHeaders
to allow selectively caching cookies and HTTP headers (qiangxue)aria-label
to ActionColumn buttons (LAV45, samdark)yii\i18n\Formatter::$numberFormatterSymbols
to allow setting custom symbols for the internally used IntlNumberFormatter, e.g. currency signs (cebe)yii\widgets\Pjax
got ability to avoid registering link/form handler via setting false
to $linkSelector
/$formSelector
(usualdesigner, Alex-Code, samdark)yii\db\Schema::getSchemaNames()
method (nineinchnick)yii\rest\UrlRule::extraPatterns
should take precedence over patterns
(Agrumas)yii\widgets\Menu::$options['tag']
to false
(kirsenn, samdark)yii\rest\Serializer
(arturf)yii\db\BaseActiveRecord::isAttributeChanged()
method will be made as identical (thiagotalma)yii\web\UrlManager::createUrl()
(laszlovl, klimov-paul)yii\db\QueryBuilder
to recognize more variations of limit
and offset
values (tino415, qiangxue)yii\i18n\Formatter
now shows more information about errors which occured when formatting values (cebe)yii\helper\Console::wrapText()
method to wrap indented text by console window width and used it in yii help
command (cebe)yii\db\IntegrityException
for oci (nineinchnick)yii\widgets\LinkPager::$firstPageLabel
and yii\widgets\LinkPager::$lastPageLabel
now could be set to true in order to use page number as label (samdark)cebe/markdown
to version 1.1.x
(cebe)yii\web\Cors
should handle Access-Control-Request-Headers
in a case-insensitive manner (qiangxue)yii\validators\DateValidator
returned valid for date “2012-12-12foo” with intl extension enabled (gajahlemu)TestCase
classes (ivokund)yii\web\Response::sendContentAsFile()
may not send correct content-length
header (sadgnome)yii\helpers\ArrayHelper::htmlEncode()
and htmlDecode()
should not remove non-string data (qiangxue)yii\console\controllers\AssetController
now correctly handles relative image URLs if source and target CSS are under same directory (klimov-paul)yii\data\ArrayDataProvider
did not correctly handle the case Pagination::pageSize = 0
(kirsenn, qiangxue)yii\helpers\Html::getInputId()
now also replaces
.with
-` to ensure a valid ID is generated (omnilight)yii\captcha\CaptchaAction
should send response in JSON format (InteLigent, qiangxue)yii\web\Request::getEtag()
should strip off -gzip
which may be added by Apache (mcd-php)yii\db\Expression
is being selected (mdmunir, qiangxue)yii\db\ActiveRecord::populateRecord()
should be called in late binding approach (jlorente)yii\console\Controller::parseDocCommentSummary()
(gugglegum)yii\log\DBTarget
(samdark)yii\widgets\ActiveField::radio()
should not generate the label twice (justinvoelker)yii\rbac\DbManager::checkAccess()
by caching mechanism (qiangxue)yii\filters\PageCache
now supports caching response headers as well as non-HTML response content (qiangxue)yii\web\AssetManager::appendTimestamp
to support cache busting for assets (qiangxue)data-params
to specify additional form data to be submitted via the data-method
approach (usualdesigner, qiangxue)encode
for each item of yii\widgets\Breadcrumbs
(samdark, aleksanderd)validateAttribute()
to yii.activeForm.js
to support manually triggering data validation of an input (Alex-Code, qiang)Access-Control-Expose-Headers
header by yii\filters\Cors
(usualdesigner)yii\helpers\Url::current()
method that allows adding or removing parameters from current URL (samdark, callmez)yii\helpers\BaseHtmlPurifier::helpers()
in order to be able to configure HtmlPurifier
helper globally via subclassing (Alex-Code)yii\web\ErrorHandler::getTypeUrl()
in order to allow providing custom types/classes/methods URLs for subclasses (brandonkelly)yii\base\ErrorHandler::logException()
is now public (samdark)yii\log\FileTarget::$enableRotation
to allow disabling log rotation when external tools are configured for this (cebe)yii\console\controllers\BaseMigrateController
now throws exception if directory specified doesn’t exist and action isn’t create
(lynicidn, samdark)yii\widgets\Menu
container tag by setting options['tag']
to false
(dynasource, samdark)yii\helpers\Html::$dataAttributes
to support customizing data attributes (Faryshta, qiangxue)yii\db\ColumnSchema
by adding typecast()
method to decouple phpTypecast()
from dbTypecast()
(mcd-php, qiangxue)trim
validator now works on the client side too (qiangxue)maxlength
attribute for Html::activeTextInput()
(llfm)Schema::TYPE_DOUBLE
to represent ANSI SQL Double Precision type (samdark)encode
option to allow not encoding select options for Html::dropDownList()
and Html::listBox()
(yapi68, qiangxue)yii\di\Container
to instantiate and configure an object that implements yii\base\Configurable
(qiangxue)yii message/config
to reflect directory structure better (mikehaertl, samdark)href
and data-method
attributes (qiangxue)true
: y
or yes
. To return false
: n
or no
. Any other input the question will be asked again (thiagotalma)ActiveRecord::findByCondition()
to simplify the implementation and usage (Faryshta)yii\authclient\clients\Twitter::$authUrl
changed to ‘authenticate’, allowing usage of previous logged user without request an access (kotchuprik)name
or model
and attribute
are no longer required properties of yii\jui\InputWidget
(nirvana-msu, cebe)yii\mongodb\Query::select
now allows excluding fields (Sammaye, klimov-paul){registerCssFile
and {registerJsFile
(TomassunGitHub, samdark){use class='yii\bootstrap\Nav' type='function'}
(ivanlemeshev)yii\sphinx\Query
no longer attempts to call snippets for the empty query result set (Hrumpa)Alert
widget was generating duplicate IDs in case of multiple flashes (SDKiller)yii\widgets\Menu
are not encoded (qiangxue)yii\di\Container::get()
did not handle config parameter correctly when it is passed as a constructor parameter (qiangxue)/
and pattern was empty (cebe)Content-Transfer-Encoding
from the list of default download headers (DaSourcerer)yii\helpers\Url::toRoute()
and yii\helpers\Url::to()
(qiangxue, lynicidn)yii\console\controllers\AssetController
now handles bundle files from external resources properly (klimov-paul)DbCache
(qiangxue)yii\behaviors\SluggableBehavior::immutable
to support keeping the generated slug unchanged (trntv)yii\widgets\ActiveForm
will scroll to the nearest visible element when the first error input is hidden (newartix)yii\base\Theme::basePath
during runtime (qiangxue)Target
now works also when there is no Yii::$app
instance available, no message prefix will be added in this case (schmunk42)yii\behaviors\SluggableBehavior
will generate a new slug only when the slug attribute is empty or the source attribute is changed (qiangxue)yii\authclient\OAuth2::refreshAccessToken()
does not save fetched token (sebathi)yii\authclient\AuthAction::cancelUrl
(klimov-paul)yii\bootstrap\Dropdown
should register client event handlers (qiangxue)ActiveFixture
class for testing fixture support for elasticsearch (cebe, viilveer)de-DE
and the translation files does not exists, it will use de
instead (cebe)yii\mongodb\file\ActiveRecord
(klimov-paul)mget()
(pyurin)yii\sphinx\Query::queryScalar()
fixed (klimov-paul)path
and url
weren’t resolving aliases (samdark, lynicidn)yii\caching\ApcCache::getValues()
now returns array in case of APC is installed but not enabled in CLI mode (samdark, cebe)yii message
accuracy and error handling were improved (samdark)yii\console\controllers\AssetController
breaks CSS URLs, which start from ‘/’ (klimov-paul)yii\bootstrap\Tabs
would throw an exception if content
is not set for one of its items
(RomeroMsk)yii\rbac\DbRbacManager
should not delete items when deleting a rule on a database not supporting cascade update (mdmunir)yii\db\Expression
to be used as the value (cebe, stevekr)yii\log\Target
should not attempt to start session when there is none (klimov-paul, qiangxue)yii\caching\ApcCache::mset()
and madd()
may cause warning in some APC setup (LAV45)currentPage
meta data in the RESTful result should be 1-based, similar to that in HTTP headers (qiangxue)asset
command would incorrectly combine CSS files when yii\web\AssetManager::linkAssets
is true (dmvslv)yii\validators\Validator::whenClient
to avoid js error (mdmunir, qiangxue){path
was generating absolute URLs instead of relative ones (samdark, motzel)data-confirm
attribute to a submit button, clicking on the button would not trigger form submission (qiangxue)QueryBuilder::batchInsert()
may cause “undefined index” error (qiangxue)message
command fails with a FK constraint error when trying to update messages (qiangxue)yii\grid\CheckboxColumn
checkboxes in grid view wasn’t resulting in “all” checkbox selected (samdark)yii\helpers\ArrayHelper::toArray()
now applies $properties
parameter for converting descending objects in recursive calls (otsec)yii\helpers\ArrayHelper::htmlEncode()
does not work properly when the value being encoded is a nested array (tebazil)encode
option via yii\widgets\ActiveRecord::errorOptions
, it works the other way around (stanishevsky, qiangxue)yii\db\Connection::getSchema()
for Oracle should return false when the table does not exist. Oracle does not support ON UPDATE
clause. (wenbin1989)yii\rbac\DbManager::getChildren()
was not quoting column name properly (wenbin1989)yii message
was emptying existing translations in .po in case of multiple categories (samdark)yii message
was incorrectly writing not yet translated strings in .po in case of multiple categories (samdark)yii\rbac\DbManager
should properly quote table and column names (qiangxue)yii\db\Expression
to yii\db\QueryBuilder
BETWEEN
and LIKE
conditions (cebe)yii\widgets\ActiveForm::enableClientScript
is false (qiangxue)yii\bootstrap\Tabs
dropdown IDs were generated incorrectly (samdark)yii\widgets\ActiveForm
different fetch modes (grachov)yii\db\Schema::getLastInsertID()
was passing wrong default schema name to PDO (samdark)yii\i18n\Formatter::asParagraphs()
was not unicode-aware (samdark)yii\gii\generators\crud\Generator
to support customizing view path for the generated CRUD controller (qiangxue)yii\web\UrlRule
was unable to create URLs for rules containing unicode characters (samdark)yii\web\AssetManager
should not publish disabled asset bundles (qiangxue)yii\web\AssetConverter::$forceConvert
(klimov-paul)yii\bootstrap\ButtonDropdown::$containerOptions
(samdark)yii\bootstrap\Modal::$headerOptions
and yii\bootstrap\Modal::$footerOptions
(tuxoff, samdark)yii\log\DbTarget
(samdark)$checkAjax
parameter to yii\web\Response::redirect()
to support default redirection behavior for AJAX/PJAX requests (qiangxue)yii\bootstrap\Nav::renderDropdown()
(qiangxue)yii\db\QueryBuilder::alterColumn()
(qiangxue)yii\widgets\Breadcrumbs::links
will be treated as HTML attributes for the generated hyperlinks (qiangxue)yii\grid\DataColumn::encodeLabel
(SDKiller)yii\web\User::getIdentity()
to avoid potential infinite recursion (qiangxue)yii\bootstrap\Dropdown
(hiltonjanfield, qiangxue)DateTimeImmutable
to yii\i18n\Formatter
(olegtsvetkov, cebe)json_encode
is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
where it makes sense, also
it is now default for yii\helpers\Json::encode()
(samdark)yii\debug\Module::panels
as panel class name strings (qiangxue)--overwrite
option to Gii console command to support overwriting all files (motin, qiangxue)yii cache/flush-schema
console command to flush DB schema cache of a given database connection (6pblcb, samdark)yii\base\ErrorHandler::unregister()
instead of restore_*_handlers
directly (aivus)yii\i18n\Formatter::defaultTimeZone
for specifying the default time zone to use for datetime values stored in the database (cebe)$formName
to Model::loadMultiple()
to support customizing form name directly (qiangxue)yii\bootstrap\Tabs::renderTabContent
to support manually rendering tab contents (RomeroMsk)ErrorException
(mongosoft)yii\bootstrap\ButtonGroup::buttons
can take all options that are supported by yii\bootstrap\Button
(aleksanderd)Html::encode()
to be used when the application is not started (qiangxue)yii message
command now shows user friendly error if it’s not able to parse source file (samdark)yii\helpers\Inflector::sentence()
(pana1990, qiangxue)StringHelper::truncate()
and StringHelper::truncateWords()
(Alex-Code)Console::confirm()
now uses Console::stdout()
instead of echo
to be consistent with all other functions (cebe)yii\rbac\DbManager
migration now uses database component specified in component settings instead of always using default db
(samdark)yii\base\Controller::renderContent()
(qiangxue)yii fixture
command now offers help if no arguments are provided instead of crashing (samdark)yii\db\Command::queryInternal()
is now protected (samdark)yii\grid\GridView
is no longer throwing an exception when results are empty and columns
aren’t defined (samdark)--append
option for the fixture
command (qiangxue)setXyz()
(cebe)definedBy
reference for properties (cebe)images
directory if it does not exist instead of throwing an error (cebe)--guidePrefix
option available as a command line option (cebe)yii\authclient\widgets\AuthChoice
does not loaded if popupMode
disabled (klimov-paul)yii\bootstrap\Tabs
would throw an exception if content
is not set for one of its items
(RomeroMsk)yii\bootstrap\Tabs
dropdown IDs were generated incorrectly (samdark)yii\bootstrap\ButtonDropdown::$containerOptions
(samdark)yii\bootstrap\Modal::$headerOptions
and yii\bootstrap\Modal::$footerOptions
(tuxoff, samdark)yii\bootstrap\Nav::renderDropdown()
(qiangxue)yii\bootstrap\Dropdown
(hiltonjanfield, qiangxue)yii\bootstrap\Tabs::renderTabContent
to support manually rendering tab contents (RomeroMsk)yii\bootstrap\ButtonGroup::buttons
can take all options that are supported by yii\bootstrap\Button
(aleksanderd)yii\debug\Module::panels
as panel class name strings (qiangxue)DefaultController::getManifest()
more robust against corrupt files (cebe)groovy
script for updating making it compatible with ES >1.3.0 (cebe)ActiveRecord::unlink()
was failing in some situations when working with relations via array valued attributes (cebe)ActiveRecord::update()
and ::delete()
including support for routing needed for updating records with parent relation (cebe)yii\gii\generators\crud\Generator
to support customizing view path for the generated CRUD controller (qiangxue)--overwrite
option to Gii console command to support overwriting all files (motin, qiangxue)yii\mongodb\ActiveRecord
saves null
as _id
, if attributes are empty (klimov-paul)yii\mongodb\Query
and yii\mongodb\ActiveQuery
(klimov-paul)true
is returned instead, now only OK
will result in a true
while all other values are returned as is (cebe){path
was generating absolute URLs instead of relative ones (samdark, motzel)yii\sphinx\Query::where()
and
yii\sphinx\ActiveQuery::where()did not allow
yii\db\Expression` to be used as the value (cebe, stevekr)yii\sphinx\QueryBuilder
does not support comparison operators (>,<,>= etc) in where specification (klimov-paul)yii\db\Exression
to QueryBuilder LIKE
conditions (cebe)yii\console\controllers\AssetController
breaks CSS URLs on Windows (klimov-paul)yii\console\controllers\AssetController
breaks CSS URLs in case target file localed at yii\web\AssetManager::basePath
root (klimov-paul)RangeValidator
(githubjeka, qiangxue)yii\i18n\Formatter::decimalSeparator
and yii\i18n\Formatter::thousandSeparator
where not configurable when intl is not installed (execut, cebe)yii\web\Session::getHasSessionId()
(qiangxue)yii\bootstrap\DropDown
(aryraditya)yii\bootstrap\DropDown
should register bootstrap plugin asset (zelenin)yii\base\Module::afterAction()
was called even when beforeAction()
returned false (cebe)yii\behaviors\Cors
causes “undefined index” error when its cors
is configured (qiangxue)yii\helpers\Html::addCssStyle()
wasn’t correctly setting style passed in array (kartik-v, samdark)yii\rbac\DbManager
to prevent database exceptions when $userId
is empty (samdark)$viewFile
and $params
to the EVENT_BEFORE_RENDER
and EVENT_AFTER_RENDER
events for View
(qiangxue)removeChildren()
to yii\rbac\ManagerInterface
and implementations (samdark)yii\base\Application::loadedModules
(qiangxue)startsWith()
and endsWith()
to yii\helpers\StringHelper
. Methods are binary-safe, multibyte-safe and optionally case-insensitive (armab)asEmail()
, asImage()
and asUrl()
methods of yii\i18n\Formatter
(alxkolm, samdark)yii\base\Module
as concrete module classes (qiangxue)yii\widgets\Pjax
should end application right after it finishes responding to a pjax request (qiangxue)yii\db\mssql\Schema::getTableSchema()
should return null when the table does not exist (qiangxue)Widget::run()
when a widget is used as a container and as a self-contained object (qiangxue)yii\base\Application::bootstrap
may fail to load some components if they are specified as class names (qiangxue)yii\console\controllers\AssetController
now respects data URL resources (klimov-paul)defaultRoles
set in RBAC manager was not working as specified (qiangxue)yii\db\ActiveQuery::indexBy()
may cause relational AR queries to generate incorrect relational results (qiangxue)yii\di\Container
did not handle the $config
parameter well in case when it does not have a default value (qiangxue)yii.activeForm.destroy()
did not remove submit
event handlers (qiangxue)yii\db\ActiveRecord::afterSave()
` (cebe, qiangxue)DateTime->format('U')
` casted to double to allow correct date formatting (pgaultier)yii\db\mysql\Schema
(terazoid, qiangxue)yii\di\Container::has()
did not return correct value (mgrechanik, qiangxue)yii\helpers\FileHelper::copyDirectory()
pattern not working (klimov-paul)yii\base\ErrorHandler
class from the app namespace (cebe)yii\di\ServiceLocator
still returns the old component after calling set()
with a new definition (qiangxue)CaptchaAction
was using a wrong content type (MDMunir, qiangxue)yii\db\QueryBuilder
(cebe)yii\console\Controller::select()
accept empty input as ‘0’ value (lynicidn)yii\helpers\FileHelper::normalizePath()
to allow a (.) for the current path. (skotos)asArray
, it is not respected by the via
relational query (qiangxue)MessageController::saveMessagesToDb()
(advsm)Captcha
(qiangxue, klevron)yii\filters\HttpCache
does not work as expected when session is started before the filter (qiangxue)GridView
may generate two different pagers/sorters if the layout configures two pagers/sorters (qiangxue)yii\base\DynamicModel::validateData()
does not call validate()
if the $rules
parameter is empty (qiangxue)ActiveRecord::unlinkAll()
. (qiangxue, cebe)yii\widgets\ActiveField
custom error selector not functioning (qiangxue)QueryBuilder::batchInsert()
does not typecast input values (qiangxue)yii\base\Formatter
by converting strings to float (kartik-v)yii\rbac\PhpManager::getChildren()
returns null instead of expected empty array (qiangxue)template
with encodeLabel
=> false (creocoder, umneeq)yii\widgets\ActiveForm::errorSummaryCssClass
when it contains multiple classes (creocoder, umneeq)yii\helpers\Html::to()
should not prefix base URL to URLs that already contain scheme (qiangxue)yii.handleAction()
in yii.js
does not correctly detect if a hyperlink contains useful URL or not (joni-jones, qiangxue)yii\log\FileTarget::rotateByCopy
to avoid any rename (cebe)Yii::$app->session
may cause a PHP error (qiangxue)yii\helpers\Html::dropDownlist()
options encodeSpaces was not applied to subgroups (MDMunir)yii\captcha\CaptchaValidator
clientside error message wasn’t formed properly (samdark)yii\db\mysql\Schema
(stevekr)yii\widgets\Pjax
was incorrectly setting container id (mitalcoi)SqlDataProvider
does not work with Oracle and SQL Server (qiangxue, miramir)yii\web\UploadedFile
and return null if no file was uploaded (OmgDef)yii message/extract
wasn’t properly writing to po files in case of multiple categories (samdark)yii\base\Security::compareString()
timing depend only on length of $actual
input and add unit test. (tom--)yii\helpers\StringHelper::byteSubstr()
` returning empty string on null $length param (mbman)yii\base\Model::isAttributeRequired()
should check if the when
option of the validator is set (thiagotalma)yii help
command was listing incorrect action names for methods like actionSayNO
(samdark)yii\web\AssetConverter
(samdark)yii\test\BaseActiveFixture::unload()
does not clean up the internal cached data (qiangxue)yii\filters\auth\CompositeAuth
should not trigger error as long as one of the methods succeeds (qiangxue)yii\console\controllers\MessageController
handles category name containing dot incorrectly (klimov-paul)yii\db\ActiveQuery
is used to build sub-queries, its WHERE clause is not correctly generated (qiangxue)joinWith()
called by a relation was ignored by yii\db\ActiveQuery
(stepanselyuk)yii\rest\CreateAction
, yii\rest\UpdateAction
and yii\rest\DeleteAction
should throw 500 error if the model operation returns false without validation errors (qiangxue)UniqueValidator
and ExistValidator
did not respect query conditions added by default scope (qiangxue)yii\widgets\ActiveForm::validationDelay
should be applied to user types only (qiangxue)yii\console\controllers\CacheController
does not check if cache component instance of ‘yii\caching\Cache’ (klimov-paul)yii\console\Application::runAction()
(samdark)yii\web\UrlManager
(klimov-paul)yii\captcha\CaptchaAction
(eXprojects, cebe)yii\helpers\StringHelper::byteSubstr()
in some edge cases (cebe)yii\helpers\Security
converted into application component, cryptographic strength improved (klimov-paul)yii\helpers\Inflector::camel2id()
to handle consecutive uppercase chars (schmunk)yii\base\Module::getInstance()
to allow accessing the module instance from anywhere within the module (qiangxue)yii\web\CookieCollection::has()
will return false for expired or removed cookies (qiangxue)yii\db\Query::where()
operand format (samdark)yii\widgets\ActiveForm::enableClientScript
to support turning on and off client side script generation (qiangxue)yii\db\IntegrityException
is now thrown on database integrity errors instead of general yii\db\Exception
(samdark)yii\caching\MemCache::persistentId
and yii\caching\MemCache::options
(qiangxue)yii\helpers\Html
helper (exromany, qiangxue)yii\helpers\Html::errorSummary()
(qiangxue)yii\debug\Module::enableDebugLogs
to disable logging debug logs by default (qiangxue)yii\rbac\PhpManager
now supports more compact data file format (qiangxue)GridView
filters (ivan-kolmychek)yii\filters\auth\CompositeAuth
will send out challenges from all auth methods (qiangxue)useTablePrefix
option to the model generator for Gii (horizons2)yii\filters\AccessControl::user
to support access control with different actors (qiangxue)export()
and exportAsString()
methods to yii\helpers\BaseVarDumper
(klimov-paul)yii\widgets\ActiveForm::fieldConfig
(qiangxue)$checkAjax
to yii\web\User::loginRequired()
(qiangxue)yii\filters\HttpCache
(qiangxue)View::theme
using a class name (netyum, qiangxue)yii\mail\BaseMailer
generates better text body from html body (armab)value
in defaultValueValidator
to be a closure (Alex-Code)yii.activeForm.js
now supports adding/removing fields dynamically (qiangxue)yii\caching\FileCache::gc()
(klimov-paul)yii\helpers\Html::encode()
now replaces invalid code sequences with “�” (DaSourcerer)unlinkAll()
method to active record to remove all records of a model relation (NmDimas, samdark, cebe)yii\filters\HttpCache::sessionCacheLimiter
(qiangxue)extensions
in application config (samdark)yii\log\FileTarget
(pawzar)yii\validators\CompareValidator::type
to support type conversion before comparing values (qiangxue)data-*
attributes (armab)currencyCode
to yii\i18n\Formatter
(leandrogehlen)yii\widgets\Menu
(arturf)mime.types
file from apache http project to dected mime types by file extension (cebe, pavel-voronin, trejder)yii\web\User::enableSession
to support authentication without using session (qiangxue)yii\db\Connection
(qiangxue)yii\validators\FileValidator::mimeTypes
to support validating MIME types of files (Ragazzo)yii\validators\FileValidator::checkExtensionByMimeType
to support validating file types against file mime-types (Ragazzo)yii\console\controllers\BaseMigrateController
extracted (klimov-paul)yii\widgets\Breadcrumbs::$links
. Allows individual link to have its own template
(creocoder, umneeq)yii\helpers\Inflector::slug()
improvements (samdark)
yii\helpers\Inflector::transliterate()
that could be replaced with custom translit implementation.yii\behaviors\BlameableBehavior
, yii\behaviors\SluggableBehavior
and yii\behaviors\TimestampBehavior
(creocoder)$message
variable (qiangxue)yii\widgets\Menu
to encode each item’s label separately (creocoder, umneeq)init
event to yii\bd\ActiveQuery
classes (qiangxue)yii\rbac\PhpManager
adjustments (samdark)
authFile
. Added itemFile
, assignmentFile
and ruleFile
.createdAt
and updatedAt
are now properly filled with corresponding file modification time.save()
and load()
are now protected instead of public.yii\helpers\FileHelper
, added $options parameter in yii\helpers\FileHelper::removeDirectory()
(resurtm)changedAttributes
of afterSave
Event now contain old values (dizews)yii\helpers\Security::generateRandomBytes()
, improved tests (samdark)yii\helpers\Html::error()
and yii\helpers\Html::errorSummary()
are now accepting encode
option. If set to false it prevents encoding of error messages (samdark)yii\base\Security
.beforeCopy
, afterCopy
, forceCopy
properties to yii\web\AssetManager
(cebe)yii\widgets\ActiveForm::validateOnBlur
and yii\widgets\ActiveField::validateOnBlur
(qiangxue)absoluteAuthTimeout
to yii\web\User
(ivokund, nkovacs)yii\filters\HttpCache
failed to comply to RFC 7232 (DaSourcerer)inline
parameter to yii\web\Response::xSendFile()
(klimov-paul)yii\widgets\ActiveForm
(Alex-Code)yii\caching\MemCache
(xjflyttp)yii\web\UrlRule
(tadaszelvys)yii\grid\ActionColumn
buttons Closure call (disem)yii\behaviors\Sluggable
(klimov-paul)yii\web\Response::setDownloadHeaders()
(pawzar)yii\db\Schema::createColumnSchema()
to be able to customize column schema used (mcd-php)yii\helpers\BaseFileHelper::findFiles()
(klimov-paul)yii\widgets\ActiveForm
and yii\widgets\ActiveField
validation errors is now configurable (Alex-Code)yii\web\Session::addFlash()
(restyler)yii\helpers\FileHelper::mimeMagicFile
(qiangxue)$pageSize
parameter to yii\data\Pagination::createUrl()
to allow creating URLs with arbitrary page sizes (cdcchen, qiangxue)beforeFilter
and afterFilter
JS events to GridView
(kartik-v)yii\widgets\ActiveForm
(qiangxue)$autoRenew
parameter to yii\web\User::getIdentity()
(qiangxue)yii\helpers\Inlfector::$transliterator
that can be used to customize intl transliteration (zinzinday)IN
condition (qiangxue)yii\web\UrlManager::addRules()
to simplify adding new URL rules (qiangxue)yii\console\Controller::EXIT_CODE_NORMAL
and yii\console\Controller::EXIT_CODE_ERROR
constants (samdark)yii\console\MigrateController
now returns yii\console\Controller::EXIT_CODE_ERROR
in case of failed migration (samdark)yii\base\ErrorHandler::unregister()
` for unregistering the ErrorHandler (cebe)all
option to yii\console\controllers\MigrateController::actionDown()
action (creocoder, umneeq)exist
validator (creocoder)FileDependency::fileName
(qiangxue)hideOnSinglePage
to yii\widgets\LinkPager
(arturf)in
validator (creocoder)yii\helpers\Inflector::slug()
to support more cases for Russian, Hebrew and special characters (samdark)yii\web\Response::enableCsrfCookie
to support storing CSRF tokens in session (qiangxue)yii\db\ColumnSchema::typecast()
into two methods phpTypecast()
and dbTypecast()
to allow specifying PDO type explicitly (cebe)yii\base\Formatter
functionality has been merged into yii\i18n\Formatter
yii\base\Formatter
classyii\validators\DateValidator
to support ICU date format and use the format defined in yii\i18n\Formatter
by default (cebe)yii\console\controllers\AssetController
is now using hashes instead of timestamps (samdark)yii\rbac\DbManager
is now initialized via migration (samdark)yii\widgets\ActiveForm::fieldConfig
will be merged recursively with the $options
parameter in yii\widgets\ActiveForm::field()
(qiangxue)yii\base\InvalidCallException
, yii\base\InvalidParamException
, yii\base\UnknownMethodException
are now extended from SPL BadMethodCallException
(samdark)View
. Added yii\helpers\Html::csrfMetaTags()
and its call to main layout files (qiangxue)$type
parameter to IdentityInterface::findIdentityByAccessToken()
(qiangxue)yii.allowAction()
and modified yii.confirm()
in yii.js
to support callbacks (tanakahisateru)yii\grid\GridView
now allows any character (except “:”) in the attribute part of the shorthand syntax for columns (rawtaz)$key
as a parameter to the callable specified via yii\grid\DataColumn::value
(mdmunir)yii\db\Connection::beginCache()
and endCache()
are removed.yii\db\Connection::cache()
and noCache()
.Command::cache()
and noCache()
.yii\db\Connection::queryCacheDuration
is now used as a default cache duration parameter.sourceLanguage
and language
are now en-US
in order for i18n formatter to work correctly (samdark)fileinfo
PHP extension to the basic requirement of Yii (Ragazzo)yii\validators\FileValidator::types
property is renamed to yii\validators\FileValidator::extensions
(Ragazzo)yii\web\View::registerAssetFiles()
to protected (samdark)MailEvent
class to yii\mail
namespace (cebe)container
option from yii\helpers\Html::checkbox()
and yii\helpers\Html::radio()
(creocoder)Yii::$app->session->setFlash()
will be removed only if they are accessed (qiangxue)yii\log\FileTarget::$rotateByCopy
now defaults to true to work on windows by default (cebe)yii\caching\GroupDependency
to TagDependency
and added support for associating multiple tags to a single cached data item (qiangxue)mail
component renamed to mailer
, yii\log\EmailTarget::$mail
renamed to yii\log\EmailTarget::$mailer
(samdark)yii\mail\BaseMailer::compose()
will not overwrite the message
parameter if it is explicitly provided (qiangxue)SyslogTarget::facility
from LOG_SYSLOG
to LOG_USER
(dizews)yii\db\BaseActiveRecord::populateRecord()
now silently hide selected columns that are not defined in AR instead of failing with an error (miramir)yii\widgets\LinkPager::hideOnSinglePage
is now true
by default (samdark)$data
from signature of yii\rbac\ManagerInterface
(samdark)yii\helpers\Html::ul()
and ol()
will return an empty list tag if an empty item array is given (qiangxue)yii\helpers\Url
now uses UrlManager
to determine base URL when generating URLs (qiangxue)inline
and mimeType
options to all file downloading methods provided in yii\web\Response
(qiangxue)YII_PATH
to YII2_PATH
(qiangxue)yii\helpers\Url::to()
will no longer prefix relative URLs with the base URL (qiangxue)yii\widgets\LinkPager
’s nextPageLabel
, prevPageLabel
, firstPageLabel
, lastPageLabel
are now taking false
instead of null
for “no label” (samdark)yii\base\ArrayableTrait::fields()
from function ($field, $model) {
to function ($model, $field) {
(samdark)yii\widgets\ActiveForm
(qiangxue)
beforeValidate()
, beforeValidateAll()
, afterValidate()
, afterValidateAll()
, ajaxBeforeSend()
and ajaxComplete()
from yii\widgets\ActiveForm
.beforeValidate
, afterValidate
, beforeValidateAttribute
, afterValidateAttribute
, beforeSubmit
, ajaxBeforeSend
and ajaxComplete
events to yii.activeForm
jQuery plugin.ActiveFixture
will reset table in its load()
method instead of unload()
(qiangxue)clearAll()
and clearAllAssignments()
in yii\rbac\ManagerInterface
with removeAll()
, removeAllRoles()
, removeAllPermissions()
, removeAllRules()
and removeAllAssignments()
(qiangxue)$user
as the first parameter of yii\rbac\Rule::execute()
(qiangxue)yii\grid\DataColumn::getDataCellValue()
visibility is now public
to allow accessing the value from a GridView directly (cebe)yii\data\ActiveDataProvider::$query
will not be modified directly with pagination and sorting anymore so it will be reuseable (cebe)yii\rest\ActiveController::$transactional
property and connected functionality (samdark)keyPrefix
property of cache components to be null (qiangxue)prefix
column to yii\log\DbTarget
to have the same amount of information logged as in files and emails (cebe)limit(null)
instead of limit(-1)
in migration controller to be compatible to more backends (cebe)yii\web\Request::cookieValidationKey
must be explicitly specified for each application that wants to use cookie validation (qiangxue)yii\composer\Installer::postCreateProject()
and modified the syntax of calling installer methods in composer.json (qiangxue)Application::controllerMap
and Application::modules
, the former will take precedence (qiangxue)yii\helpers\Html::activeCheckbox()
and activeRadio()
will generate labels by default using the corresponding attribute labels (qiangxue)yii\behaviors\SluggableBehavior
that fills the specified model attribute with the transliterated and adjusted version to use in URLs (creocoder)yii\filters\Cors
CORS filter to allow Cross Origin Resource Sharing (pgaultier)yii\test\ArrayFixture
(Ragazzo)yii\base\InvalidValueException
(qiangxue)yii\caching\ArrayCache
(cebe)yii\console\controllers\AssetController
does not override ‘js’ and ‘css’ for compressed bundles (klimov-paul)visible
setting for yii\widgets\DetailView
doesn’t work as expected (qiangxue)yii\validators\FileValidator
and yii\validators\ImageValidator
still trigger uploadRequired
error in some case when skipOnEmpty
is true and no upload is provided (qiangxue)yii\validators\StringValidator
is accessing undefined property (qiangxue)enableAutoLogin
to basic and advanced project templates so “remember me” now works properly (samdark)yii\jui\SliderInput
wasn’t properly initialized (samdark)yii\widgets\ActiveForm
is creating duplicated messages in error summary (qiangxue)yii\helpers\Inflector::camelize()
(qiangxue)$_SERVER['HTTPS']
in yii\web\Request::getIsSecureConnection()
(ginus, samdark)Session::regenerateID()
call (qiangxue)run()
to execute another action (qiangxue)yii\console\controllers\FixtureController
apply/clear actions. (Ragazzo)TRUNCATE
changed to DELETE
to avoid postgresql tables checks (and truncating all tables) (Ragazzo)init --env
when called without parameter actually specified (samdark)yii\helpers\Html::activeCheckbox()
wasn’t respecting custom values for checked/unchecked state (klevron, samdark)yii\base\Controller::findLayoutFile()
returns incorrect file path when layout name starts with a slash (qiangxue)yii\db\QueryBuilder::buildInCondition()
fails to handle array not starting with index 0 (qiangxue)yii\gridview\DataColumn
generates incorrect labels when used with nosql DB and there is no data (qiangxue)yii\base\Theme::pathMap
did not support dynamic update with path aliases (qiangxue)$_SERVER['DOCUMENT_ROOT']
is empty (samdark)missingTranslation
-event (cebe)app
message category was always en
no matter which application sourceLanguage
was used (samdark)yii\widgets\GridView
filtering with Pjax
(tonydspaniard)yii message
tool wasn’t updating message
table (mitalcoi)yii\helpers\Html::textArea()
should respect
name` option. (qiangxue)https://bugs.php.net/bug.php?id=66606
(dizews)yii\validators\FileValidator::isEmpty()
always returns true for validate multiple files (ZhandosKz)yii\rest\CreateAction::run()
was using obsolete yii\web\Controller::createAbsoluteUrl()
method (tonydspaniard)yii\captcha\CaptchaAction::run()
was using obsolete yii\web\Controller::createUrl()
method (tonydspaniard)yii\grid\GridView
filterUrl
parameters (qiangxue, AlexGx)app*
or yii*
default app
and yii
sources were not removed (samdark)yii\cache\DbCache
while enabling schema caching may cause infinite loops (qiangxue)reusable
is set true (qiangxue)yii\bootstrap\Nav
and yii\bootstrap\Dropdown
were generating wrong ids for submenus (arturf)yii\web\CookieCollection::has()
always returns false for cookies from browser (sonicgd)ORDER BY
clause when it is not needed (qiangxue)yii\db\TableSchema::sequenceName
for PostgreSQL should remove the enclosing quotes (katzz0, qiangxue)Call to a member function
registerAssetFiles()on a non-object
in case of wrong sourcePath
for an asset bundle (samdark)yii\jui\Spinner
(samdark)yii\helpers\Json::encode()
did not handle objects that implement
JsonSerializable` interface correctly (cebe)yii\widgets\ActiveField::radio()
and yii\widgets\ActiveField::checkbox()
(jom)http://example.com//////site/about
(samdark)yii\console\controllers\HelpController::getModuleCommands()
issue where it attempts to scan a module’s controller directory when it doesn’t exist (jom)yii\base\Model::load()
returned true
if $data
and formName
were empty (samdark)yii\db\ActiveRelationTrait
preventing yii\db\ActiveQuery
from clearing events and behaviors on clone (jom)yii\db\Query::queryScalar()
wasn’t making SELECT DISTINCT
queries subqueries (jom)$files
instead of self::$_files[$key]
to allow inheritance (pgaultier)yii\helpers\Inflector::slug()
with intl
transliteration. Improved transliteration char map. (tonydspaniard)yii\log\Target::logUser
and added yii\log\Target::prefix
to support customizing message prefix (qiangxue)Rule
from RBAC Item
(samdark, qiangxue)yii\validators\UniqueValidator
and yii\validators\ExistValidator
(qiangxue)ArrayHelper::getValue()
(qiangxue, cebe)yii\web\View::renderAjax()
and yii\web\Controller::renderAjax()
(qiangxue)yii\helpers\Console::showProgress()
with a better approach. See yii\helpers\Console::startProgress()
for details (cebe)yii\widgets\ListView::viewParams
(qiangxue)yii\web\Session::handler
property (nineinchnick)yii\grid\ActionColumn::controller
property to support customizing the controller for handling GridView actions (qiangxue)yii\web\User
to start session only when needed. Also prepared it for use without session. (qiangxue)yii\bootstrap\Tabs::linkOptions
(kartik-v)yii\web\Controller::createAbsoluteUrl()
(samdark)yii\db\ActiveQuery::joinWith()
and yii\db\ActiveQuery::innerJoinWith()
to support joining with relations (qiangxue)createAbsoluteUrl()
` to force ‘http’ or ‘https’ (cebe)yii\db\BaseActiveRecord::markAttributeDirty()
(qiangxue)BaseActiveRecord::updateAttributes()
(qiangxue)yii\db\QueryBuilder::checkIntegrity()
and yii\db\QueryBuilder::resetSequence()
(Ragazzo)yii\db\Connection::$pdoClass
property (Ragazzo)yii\widgets\ActiveField::label()
(qiangxue)yii\db\ActiveRecord::tableName()
now returns table name using yii\db\Connection::tablePrefix
(creocoder)yii\bootstrap\NavBar
with containerOptions
, innerContainerOptions
and renderInnerContainer
(creocoder)@webroot
and @web
are now available right after the application is initialized (qiangxue)yii\grid\ActionColumn
now allow to name buttons like {controller/action}
(creocoder)yii message/extract
is now able to generate .po
files (SergeiKutanov, samdark)yii\base\ActionFilter
will now mark event as handled when action run is aborted (cebe)filterWhere()
method to yii\db\Query to allow easy addition of search filter conditions by ignoring empty search fields (samdark, cebe)filter
property to yii\validators\ExistValidator
and yii\validators\UniqueValidator
to support adding additional filtering conditions (qiangxue)yii message/extract
is now able to save translation strings to database (kate-kate, samdark)en
from en-US
if message translation isn’t found (samdark)en
from en-US
if file not found (samdark)sourceLanguage
and language
are now en
(samdark)yii\widgets\DetailView
now allow use category.name
as attribute name (creocoder)yii\widgets\DetailView
now allow use custom label in string format like name:format:label
(creocoder)yii\web\AccessDeniedHttpException
to yii\web\ForbiddenHttpException
, added new commonly used HTTP exception classes (danschmidt5189)Html
helper now supports rendering “data” attributes (qiangxue)yii migrate
now automatically creates migrations
directory if it does not exist (samdark)yii\web\AssetManager::publish()
, yii\web\AssetManager::getPublishedPath()
and yii\web\AssetManager::getPublishedUrl()
to support aliases (vova07)X-HTTP-Method-Override
header in yii\web\Request::getMethod()
(pawzar)addCssStyle()
, removeCssStyle()
, cssStyleFromArray()
and cssStyleToArray()
to yii\helpers\Html
(qiangxue, kartik-v, Alex-Code)dataType
for $.ajax
call in yii.activeForm.js (Borales)relatedModel.attribute
, will be received from the related model if it available (djagya)yii\db\Query::count()
and other query scalar methods now properly handle queries with GROUP BY clause (qiangxue)yii\base\Formatter
(VinceG)yii\console\Controller::globalOptions()
to options($actionID)
to (make it possible to) differentiate options per action (hqx)yii\base\Formatter
(drenty)yii\db\ActiveRecord::loadDefaultValues()
that fills default values from DB schema (samdark)yii\validators\FilterValidator::skipOnArray
so that filters like trim
will not fail for array inputs (qiangxue)DateTimeInterface
in yii\i18n\Formatter
(ivokund)isEmpty
check for all validators (qiangxue)yii\base\Application::bootstrap
and yii\base\BootstrapInterface
to support running bootstrap classes when starting an application (qiangxue)afterSave()
so information about changed attributes is available in afterSave
-event (cebe)yii\base\Application::end()
(qiangxue)favicon.ico
and robots.txt
to default project templates (samdark)yii\base\Widget::autoIdPrefix
to support prefixing automatically generated widget IDs (qiangxue)init
of advanced application now allows to specify answer for overwriting files via init --overwrite=n
(samdark)yii\db\TableSchema::fullName
property (qiangxue)yii\codeception\TestCase
now supports loading and using fixtures via Yii fixture framework (qiangxue)beforeRun()
and afterRun()
to yii\base\Action
(qiangxue)yii\base\Formatter
(dizews)yii\web\View::POS_LOAD
(qiangxue)yii\web\Response::clearOutputBuffers()
(qiangxue)yii\db\QueryBuilder::buildLimit()
to support big numbers (qiangxue)yii\data\Pagination::getLinks()
(qiangxue)yii\data\Pagination
(qiangxue)yii\web\UrlRuleInterface
and yii\web\CompositeUrlRule
(qiangxue)yii\web\Request::getAuthUser()
and getAuthPassword()
(qiangxue)yii\widgets\BaseListView
(johonunu)isAssociative()
and isIndexed()
to yii\helpers\ArrayHelper
(qiangxue)addSelect
to yii\db\Query
(Alex-Code)yii\db\Connection
(nineinchnick, resurtm)yii\widgets\ActiveField::hiddenInput()
(qiangxue)Sort
to use comma to separate multiple sort fields and use negative sign to indicate descending sort (qiangxue)yii\web\User::loginRequired()
now returns the Response
object instead of exiting the application (qiangxue)yii\web\Session::autoStart
and added hasSessionId
. Session will be automatically started when accessing session data (qiangxue)yii\db\QueryBuilder::buildLikeCondition()
will now escape special characters and use percentage characters by default (qiangxue)yii\helpers\Html::activeCheckboxList()
and Html::activeRadioList()
will submit an empty string if no checkbox/radio is selected (qiangxue)yii\captcha\Captcha::options
(qiangxue)yii\base\Controller::getActionParams()
(samdark)yii\grid\CheckboxColumn
now renders checkboxes whose values are the corresponding data key values (qiangxue)yii\web\Response::sendFile()
and other file sending methods will not send the response (qiangxue)yii\db\Connection::tablePrefix
default value now tbl_
(creocoder)beforeSubmit
in yii.activeform
is now executed after validation and before form submission (6pblcb)yii\web\Request::acceptedLanguages
to acceptableLanguages
(qiangxue)yii\web\Request::getPost()
, getPut()
, getDelete()
, getPatch()
in favor of getBodyParam()
(cebe)yii\web\Request::get()
to getQueryParams()
and getRestParams()
to getBodyParams()
(cebe)yii\web\Request::get($name = null, $defaultValue = null)
and yii\web\Request::post($name = null, $defaultValue = null)
(samdark)yii\helpers\FileHelper
(nineinchnick)yii\web\Request::acceptTypes
and renamed yii\web\Request::acceptedContentTypes
to acceptableContentTypes
(qiangxue)yii\web\AccessDeniedHttpException
to yii\web\ForbiddenHttpException
(danschmidt5189)yii\db\ActiveRelation
class and yii\db\ActiveRelationInterface
, moved the functionality to yii\db\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.
Also removed yii\db\ActiveRecordInterface::createActiveRelation()
(cebe)*
category pattern will match all categories that do not match any other patterns listed in yii\i18n\I18N::translations
(qiangxue, Ragazzo)return
in Widget::run
(samdark)yii\helpers\StringHelper::diff()
, Moved phpspec/php-diff
dependency from yiisoft/yii2
to yiisoft/yii2-gii
(samdark)yii\db\QueryBuilder
will now append UNION statements at the end of the primary SQL (qiangxue)tinyint(1)
as integer instead of boolean (qiangxue)yii\base\Model::DEFAULT_SCENARIO
to yii\base\Model::SCENARIO_DEFAULT
(samdark)yii\db\ActiveRecord::create()
to populateRecord()
and changed signature. This method will not call instantiate() anymore (cebe)yii\widgets\MaskedInput
now defaults to form-control
(qiangxue)Yii::$app->exception
has now moved to Yii::$app->errorHandler->exception
yii\base\ErrorHandler
was split into yii\web\ErrorHandler
and yii\console\ErrorHandler
yii\widgets\DetailView
’s name:format:label
to attribute:format:label
to match GridView
(samdark)yii\base\ErrorException
now extends \ErrorException
(samdark)yii\base\Module::controllerPath
is now read only, and all controller classes must be namespaced under Module::controllerNamespace
. (qiangxue)yii\helpers\Url
.yii\helpers\Html::url()
, use yii\helpers\Url::to()
instead.yii\web\Controller::createUrl()
and yii\web\Controller::createAbsoluteUrl()
, use yii\helpers\Url::toRoute()
instead.yii\web\Controller::getCanonicalUrl()
, use yii\helpers\Url::canonical()
instead.UrlManager
(gonimar, qiangxue)FileCache::keyPrefix
defaults to empty string now (qiangxue)Application::preload
in favor of Application::bootstrap
(qiangxue)yii\base\Formatter
to Y-m-d
and H:i:s
(qiangxue)tbl_
default for table prefix (samdark)yii\db\ActiveRecord::createQuery()
with find()
to simplify customizing yii\db\ActiveQuery
classes (qiangxue)findOne()
and findAll()
to replace the usage of yii\db\ActiveRecord::find($condition)
. (samdark, qiangxue)yii\web\Request::getUserIP()
will return null if it cannot detect user IP address (qiangxue)yii\jui\Widget::clientEventsMap
to clientEventMap
(qiangxue)ActiveRecord::getPopulatedRelations()
to getRelatedRecords()
(qiangxue)attributeName
and className
to targetAttribute
and targetClass
for UniqueValidator
and ExistValidator
(qiangxue)yii\widgets\InputWidget::options
(qiangxue)urlCreator
and button creators for yii\gridview\ActionColumn
(qiangxue)4.6.*
.index.php
,
index-test.php
and yii
files to point to the new location of Yii.php
(qiangxue, cebe)-local
config not to expose it to VCS (samdark)yii\web\Request::acceptedLanguages
to acceptableLanguages
(qiangxue)yii\base\Arrayable
from yii\base\Object
(qiangxue)View
at the end of endBody()
. It was done in endPage()
previously (qiangxue)csrf-var
to csrf-param
for CSRF header name (Dilip)mails
to mail
(qiangxue)fooVar
to fooParam
for various classes (qiangxue)
yii\widgets\ActiveForm::ajaxVar
to ajaxParam
yii\data\Pagination::pageVar
to pageParam
yii\data\Sort::sortVar
to sortParam
yii\web\Request::csrfVar
to csrfParam
yii\web\Request::methodVar
to methodParam
yii\web\UrlManager::routeVar
to routeParam
yii\web\Session::flashVar
to flashParam
yii\web\User::idVar
to idParam
yii\web\User::authTimeoutVar
to authTimeoutParam
yii\web\User::returnUrlVar
to returnUrlParam
yii\base\View::viewFile
and removed yii\base\ViewEvent::viewFile
(qiangxue)yii\base\Controller::afterAction()
, yii\base\Module::afterAction()
and yii\base\ActionFilter::afterAction()
to pass $result
by value instead of reference (qiangxue)yii\base\Extension::init()
is renamed to bootstrap()
(qiangxue)getComponent()
and setComponent()
in yii\base\Application
and yii\base\Module
are renamed to get()
and set()
respectively. (qiangxue)Yii::createObject()
is changed. Constructor parameters must be passed as the second parameter. (qiangxue)Yii::$objectConfig
is removed. You should use Yii::$container->set()
to configure default settings of classes. (qiangxue)yii\grid\Column::getDataCellContent()
and renamed yii\grid\DataColumn::getDataCellContent()
to yii\grid\DataColumn::getDataCellValue()
(cebe)yii\log\Logger
is split into yii\log\Logger
and yii\log\Dispatcher
. (qiangxue)yii\filters
(qiangxue)yii\rbac\PhpManager
. (qiangxue)yii\web\User::checkAccess()
to yii\web\User::can()
(qiangxue)yii\di\Container
and yii\di\ServiceLocator
(qiangxue)yii\widgets\Pjax
and enhanced yii\grid\GridView
to work with Pjax
to support AJAX-update (qiangxue)yii\filters\ContentNegotiator
to support response format and language negotiation (qiangxue)yii\base\DynamicModel
to support ad-hoc data validation (qiangxue)AttributeBehavior
and BlameableBehavior
, and renamed AutoTimestamp
to TimestampBehavior
(lucianobaraglia, qiangxue)yii\web\ViewAction
that allow you to render views based on GET parameter (samdark)yii\log\SyslogTarget
that is able to write log to syslog (miramir, samdark)yii\bootstrap\ActiveForm
and yii\bootstrap\ActiveField
(mikehaertl)yii\widgets\ActiveForm::beginField()
and endField()
(qiangxue)yii\codeception\DbTestCase
(qiangxue)yii\web\GroupUrlRule
(qiangxue)yii\filters\RateLimiter
(qiangxue)HttpBasicAuth
, HttpBearerAuth
, QueryParamAuth
, and CompositeAuth
(qiangxue)yii\web\HtmlResponseFormatter
and yii\web\JsonResponseFormatter
(qiangxue)Official extensions released in this version:
Elasticsearch integration: ActiveRecord and Query
Redis integration: ActiveRecord, Cache and Session
Sphinx integration: ActiveRecord and Query