March releases of official Yii 2.0 extensions
The Yii PHP framework team has released some official extensions.
Extensions were separated from the core of the framework for a long time, but since there was a lot of time for each release, extensions were released along with the releases of the framework. Now that the release process is automated for extensions, releasing them as needed will be much easier.
This time there were updates for:
All these releases contain a fairly large number of both fixes and improvements. Next, consider the most interesting.
The API documentation generator has become more flexible. Now you can set the class name as the template name:
The specified class will be loaded and used to render the documentation.
A template was also added
Finally, the styles for the Info, Note, and Warning blocks in the manual have been significantly improved.
In addition to corrections, a new widget has been added for
You can use it directly in ActiveForm through the method
The debug panel can now work asynchronously on the same page as it is currently debugging. Just like debugging tools in popular browsers.
The stability of the panel has increased in various kinds of exceptional situations. The panel now does not use asset manager, so it feels quite good if it is disabled to use, for example, Gulp or Grunt. The ToolbarAsset class has been removed.
The extension is now compatible with Elasticsearch 2.0. Also added support for HTTP authentication, the Elasticsearch AWS service and its request options, such as
In addition, support for the scroll API has been added: now the methods
The CRUD generator has the ability to frame a GridView in Pjax. The model generator now takes foreign table keys into account to create type validation rules
Now you can press CTRL + C in the code preview window to copy all the code without highlighting it.
Extensions were separated from the core of the framework for a long time, but since there was a lot of time for each release, extensions were released along with the releases of the framework. Now that the release process is automated for extensions, releasing them as needed will be much easier.
This time there were updates for:
- API documentation generator ( yii2-apidoc ) 2.0.5, CHANGELOG .
- Bootstrap ( yii2-bootstrap ) 2.0.6, CHANGELOG .
- Integrations with Codeception ( yii2-codeception ) 2.0.5, CHANGELOG .
- Debugging Panel ( yii2-debug ) 2.0.6, CHANGELOG .
- Elasticsearch ( yii2-elasticsearch ) 2.0.4, CHANGELOG .
- Gii code generator ( yii2-gii ) 2.0.5, CHANGELOG .
- jQuery UI ( yii2-jui ) 2.0.5, CHANGELOG .
- Redis ( yii2-redis ) 2.0.5, CHANGELOG .
- SwiftMailer ( yii2-swiftmailer ) 2.0.5, CHANGELOG .
- Smarty ( yii2-smarty ) 2.0.5, CHANGELOG .
All these releases contain a fairly large number of both fixes and improvements. Next, consider the most interesting.
API Documentation Generator
The API documentation generator has become more flexible. Now you can set the class name as the template name:
vendor/bin/apidoc guide source/docs ./output --template=app\apidoc\MyTemplateClass
The specified class will be loaded and used to render the documentation.
A template was also added
json
that allows you to get the class structure in the appropriate format. Finally, the styles for the Info, Note, and Warning blocks in the manual have been significantly improved.
Bootstrap
In addition to corrections, a new widget has been added for
ToggleButtonGroup
. You can use it directly in ActiveForm through the method
widget()
:field($model, 'item_id')->widget(\yii\bootstrap\ToggleButtonGroup::classname(), [
// configure additional widget properties here
]) ?>
Debug panel
The debug panel can now work asynchronously on the same page as it is currently debugging. Just like debugging tools in popular browsers.
The stability of the panel has increased in various kinds of exceptional situations. The panel now does not use asset manager, so it feels quite good if it is disabled to use, for example, Gulp or Grunt. The ToolbarAsset class has been removed.
Elasticsearch
The extension is now compatible with Elasticsearch 2.0. Also added support for HTTP authentication, the Elasticsearch AWS service and its request options, such as
min_score
. In addition, support for the scroll API has been added: now the methods
batch()
and each()
, and updateAll()
, are deleteAll()
no longer limited to ten entries by default.Gii Code Generator
The CRUD generator has the ability to frame a GridView in Pjax. The model generator now takes foreign table keys into account to create type validation rules
exist
. He also learned how to generate feedbacks. Now you can press CTRL + C in the code preview window to copy all the code without highlighting it.