In this tuts+ tutorial Jeff Reifman shows how to build and explore a very basic ActiveRecord based REST API using Yii 2.0.
Apr 5, 2017
Redis extension version 2.0.6 was released. This release contains important fixes for composite keys and executing two-word commands. There are enhancements and new features as well:
SELECTcommand after connection by setting
\yii\db\QueryInterface::emulateExecution()was introduced to allow creating an empty query without the need to connect to a database
Apr 1, 2017
If you are displaying ActiveRecord on its own route, you can use this extension to make it easier creating URLs. You won't write code like below anymore:
Html::a( $user->name, [ '/user/view', 'id' => $user->id, ], [ 'class' => 'text-success' ], );
Instead, it would be
$model->getHotlink('view', ['class' => 'text-success']);
Whenever you have to change the route adjust behavior configuration in your ActiveRecord instead of going through your view files updating routes one by one. You can also link to other components or ActiveRecords that use the
Mar 28, 2017
Migration v2.0 extension has been released with the ability to generate updating migration based on the current database table structure and table migration history.
Previously Migration was able to generate only creating migrations based on the current database table structure - now it can scan migration history and generate virtual table schema based on it and then compare it with current table structure to generate updating migration.
Mar 24, 2017
The article compares basic application template and advanced application template. There are some tips and a good feature chart at the end.
Mar 23, 2017
New version provides wide functionality for code completion in Yii arrays. The main improvement is about supporting
Object::__construct(). Those methods are widely used in the framework so there are many places where code completion will work much better in these cases:
yii\base\Objector its descendants constructor
WidgetClassis a descendant of
$field->widget()method call on
yii\widgets\ActiveFieldand its descendants
New developer has joined the project so we expect the plugin to develop faster making Yii framework even better.