i want to create another another post, speaking of many/many realtion.
I don’t understand why Giix use checkbox in the _form, it’s works so better with a multi select …
for that i’ve modified the :
"protected\extensions\giix-core\giixCrudGiixCrudCode.php"
around line 144 :
replace :
return "echo \$form->checkBoxList(\$model, '{$relationName}', GxHtml::encodeEx(GxHtml::listDataEx({$relationModel}::model()->findAllAttributes(null, true)), false, true))";
with :
return "echo \$form->listBox(\$model, '{$relationName}', GxHtml::encodeEx(GxHtml::listDataEx({$relationModel}::model()->findAllAttributes(null, true)), false, true),array('multiple'=>'multiple'))";
it work with multiselect, saved and all fine, it’s required …
The only problem is i get a php notice on the controler
just after each action i need to manually make a :
if (!isset($_POST[‘XXX’][‘YYY’]))
$_POST['XXX']['YYY']='';
for information i’ve searched to translate the message :
1°: create protected\messages\fr\app.php
2°: copy the structure of yii\framework\messages\fr\yii.php
3°: enjoy the Giix Multilanguage !
ps : i’m french sorry for mistakes