php - Create tabular input widgets with yii for humhub -


hey stackoverflow community,

i want create task list form:

<?= $form->field($task, "[$i]title"); ?>  <?= $form->field($task, "[$i]assigneduserids")     ->widget(\humhub\modules\user\widgets\userpickerfield::class, [         'url' => $this->context->contentcontainer->createurl('/space/membership/search')     ]); ?> 

the title field works fine. userpicker results in following error:

yii\base\unknownpropertyexception: getting unknown property: humhub\modules\tasks\models\task::[0]assigneduserids in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/component.php:147 stack trace: #0 [...] 

if remove [$i] before "assigneduserids" works. have distinguish between tasks. without [$i] have multiple fields same name.

can me? :)


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -