yii2-extension

Error in wbranca dynagrid update

拥有回忆 提交于 2019-12-25 19:58:13
问题 Am using wbranca yii2 to create dynamic forms but the update action returns an error of array_combine(): Both parameters should have an equal number of elements This is the form for the update <div class="panel-body"> <?php DynamicFormWidget::begin([ 'widgetContainer' => 'dynamicform_wrapper', // required: only alphanumeric characters plus "_" [A-Za-z0-9_] 'widgetBody' => '.container-items', // required: css class selector 'widgetItem' => '.item', // required: css class 'limit' => 10, // the

How to atomatically apply migrations that comes from Yii2 extensions

放肆的年华 提交于 2019-12-24 16:05:19
问题 I have installed an extension for Yii2 dektrium/yii2-user using composer using it's "require" section. This extension contains migrations for database. Is it possible to apply migrations from this extension using console syntax not like this: php yii migrate --migrationPath=@dektrium/yii2-user/migrations but run all migrations automatically by using a simple command like: php yii migrate Is it possible to tell composer where the concrete extension contains it's migrations? 回答1: If you want to

Yii2 gridview - modal only display when click on first row

本秂侑毒 提交于 2019-12-11 08:54:48
问题 I am using kartik\grid\GridView and kartik\grid\ExpandRowColumn to display summary info. On expandRowColumn, I have another gridview to list details info. This part is working fine. Under expandRowColumn gridview I am using modal to view data for column Details. Click modal on first expandRowColumn working fine but got error on other expandRowColumn row. There is no error message but modal is not displaying error_image Gridview on expandRowColumn $gridColumns = [ ['class' => 'yii\grid