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.

    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 jsonthat 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.

    Also popular now: