The team of the PHP framework Yii has released releases of some official extensions.
Extensions were separated from the framework core for a long time, but since it took quite a lot of time for each release, extensions were released along with releases of the framework. Now that the release process is automated and for extensions, releasing them as needed will be much easier.
This time there were updates for:
')
- Generator Documentation API ( yii2-apidoc ) 2.0.5, CHANGELOG .
- Bootstrap ( yii2-bootstrap ) 2.0.6, CHANGELOG .
- Integration with Codeception ( yii2-codeception ) 2.0.5, CHANGELOG .
- Debugging pane ( 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
The specified class will be loaded and used to render the documentation.
A
json
template has also been added, allowing to get the structure of classes in the appropriate format.
Finally, the styles for the Info, Note, and Warning blocks in the tutorial have been significantly improved.
Bootstrap
In addition to the fixes, a new widget for
ToggleButtonGroup
added.
You can use it directly in ActiveForm via the
widget()
method:
<?= $form->field($model, 'item_id')->widget(\yii\bootstrap\ToggleButtonGroup::classname(), [
Debug panel
The debug panel can now work asynchronously on the same page that is being debugged at the moment. Directly as debugging tools in popular browsers.
Increased stability of the panel in all sorts of exceptional situations. The panel now does not use the asset manager, so it feels quite well 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. Support for HTTP authentication, AWS from Elasticsearch, and its query options, such as
min_score
.
In addition, support for the scroll API has been added: the
batch()
and
each()
methods now work, and
updateAll()
and
deleteAll()
no longer limited to ten default entries.
Gii code generator
The CRUD generator has the opportunity to frame the GridView in Pjax. The model generator now takes into account table foreign keys to create validation rules of the type
exist
. He also learned how to generate feedback.
In the code preview window, you can now press CTRL + C to copy all the code without selecting it.