Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はフォームフィールドを次のように持っています
$form->textArea($model,'remarks[1]');
ここで、このテキストエリアの値を設定する必要があります。
これを行う方法?私はこのフレームワークに不慣れです。
$modelがモデルで、が属性の場合remarks[1]、次を使用して値を指定できます。
$model
remarks[1]
$ model-> remarks [1]='あなたの価値';
編集:
試す:
$model->remarks = 'Your Value'; $form->textArea($model,'[1]remarks');