Version 4.1.6

Release Date: Not released

4.1.6 release of CodeIgniter4

BREAKING

  • Multiple table names will no longer be stored in BaseBuilder::$tableName - an empty string will be used instead.

Validation changes

  • The previous version of the Validation can’t handle an array item. Because of the bug fix, the validation results may be different, or raise a TypeError. But the previous version’s results are probably incorrect.

  • The Validation separated the validation process of multiple field like contacts.*.name and single field. When a single field has an array data, the previous version validates each element of the array. The validation rule gets an element of the array as the parameter. On the other hand, the current version passes the array to the validation rule as a whole.

Enhancements

  • Database pane on debug toolbar now displays location where Query was called from. Also displays full backtrace.

Changes

  • The process of sending cookies has been moved to the Response class. Now the Security and CookieStore class don’t send cookies, set them to the Response.

Deprecations

Sending Cookies

The process of sending cookies has been moved to the Response class. And the following methods are deprecated:

  • CookieStore::dispatch()

  • CookieStore::setRawCookie()

  • CookieStore::setCookie()

  • Security::sendCookie()

  • Security::doSendCookie()