📜 ⬆️ ⬇️

March Releases of Official Yii 2.0 Extensions

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:
')

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 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(), [ // configure additional widget properties here ]) ?> 

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.

Source: https://habr.com/ru/post/279637/


All Articles