Array to string conversion Yii2



  • It is necessary to remove the list of categories from droplist when a new product is created.

    My code is: введите сюда описание изображения

    The following data envelope error is made:

    PHP Notice - yii\base\ErrorException

    Array to string conversion

    I've never encountered her. Help me, please!



  • Well, maybe because you have it written. <?= a short symbol <?php echo♪ So all you're trying to do inside is trying to get the interpreter out through. echo♪ ♪ ♪ ♪

    That's right. $categories Writetag. <?php a before $form->field... write echo

    It should work.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2