Yii is een component based php-framework, met volgens de ontwikkelaars zeer goede prestaties, die het bijzonder geschikt maken voor het ontwikkelen van grootschalige webapplicaties. Het framework bevat tal van opties, zoals mvc, dao/ActiveRecord, I18N/L10N, caching, jQuery-based AJAX support, scaffolding, input validation, widgets, events en theming. Voor meer informatie verwijzen we naar deze pagina. De ontwikkelaars hebben versie 2.0.16 uitgebracht en de releasenotes voor die uitgave zien er als volgt uit: Yii 2.0.16 is released We are very pleased to announce the release of Yii Framework version 2.0.16. Please refer to the instructions at https://www.yiiframework.com/download/ to install or upgrade to this version. Version 2.0.16 is a minor release of Yii 2.0 which contains more than a hundred enhancements and bug fixes including security fixes. Yii 2.0 reached feature freeze more than a year ago, meaning that the 2.0 branch will only receive bug fixes. That was done in order to allow the Yii Team to focus on the upcoming Yii 3 rewrite. There’s more on Yii 3 at the very end of this announcement. There are minor changes that may affect your existing applications, so make sure to check the UPGRADE.md file. Huge thanks to all Yii community members who contribute to the framework. It wouldn’t have been possible without you. Additional thanks to translators who are keeping international documentation up to date. There are many active Yii communities so if you need help or want to share your experience, feel free to join them. You can also discuss this news on our forum. Below we summarize some of the enhancements and changes that slipped into this release. A complete list of changes can be found in the CHANGELOG. Active Record A behavior for optimistic locking was added by Salem Ouerdani, @tunecino. Optimistic locking allows multiple users to access the same record for edits and avoids potential conflicts. In case when a user attempts to save the record upon some staled data (because another user has modified the data), a StaleObjectException exception will be thrown, and the update or deletion is skipped. The locking itself was implemented from the first versions of Yii but using it properly wasn’t easy. Now it is. You can find details in the guide section on optimistic locks and in OptimisticLockBehavior itself. Migrations Console migration generator defaults were changed so that the migrations are generated with table prefixes used. If you want to disable this behavior, set yii\console\controllers\MigrateController::useTablePrefix to false via console command mappings. Databases
