Download the PHP package drsdre/yii2-radtools without Composer
On this page you can find all versions of the php package drsdre/yii2-radtools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-radtools
Yii2 RAD Tools
Rapid Application Development controller for quick and complete crud interfaces to linked database models. It supports yii2-ajaxcrud for modal based crud forms (pop-ups), kartik-v/Dynagrid for the Gridview and kartik-v/yii2-detail-view for integrated view/update/create forms.
The controller comes with the following build-in actions:
- index: full page using build in or kartik-v GridView
- view: either full page or using yii2-ajaxcrud modal
- create: either full page or using yii2-ajaxcrud modal
- copy: either full page or using yii2-ajaxcrud modal
- update: either full page or using yii2-ajaxcrud modal
- delete: either full page or using yii2-ajaxcrud modal
- bulkUpdate: for bulk actions from GridView
- bulkDelete: for bulk actions from GridView
All actions can be configured to have specific success URL's and custom variables to be send to the view. When a 'return_url' GET parameter with the action, it will overrule the success URL.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply extend from BaseAjaxCrudController and add settings:
To use hierarchy links, simply extend from AjaxCrudHierarchyLinkController and setup $hierarchy_links parameter:
Bulk update & delete
The bulk-update and bulk-delete actions are enabled by default in BaseAjaxCrudController. They are added in the view using the BulkButtonWidget.
Bulk-update uses the model scenario that can be set on a single update action. You can add form elements for changing the data to the 'data-confirm-message'. Use the exact field name of the model (this is auto-mapped in the action). The 'data-confirm-ok' field is used to build the submit button which pushes.
For example:
TODO add explanations for the parameters.
All versions of yii2-radtools with dependencies
yiisoft/yii2 Version ~2.0.14
johnitvn/yii2-ajaxcrud Version dev-master
kartik-v/yii2-dynagrid Version ~1.4