search

Home  >  Q&A  >  body text

After the database is connected, this will be displayed when you enter a column and submit it. what is the reason?

Cannot use object of type Think\Model as array


陈总就Jq陈总就Jq2183 days ago1114

reply all(1)I'll reply

  • tian浪

    tian浪2018-12-12 17:32:12

    The model class returns an object and cannot be called using array key names. Example: $user->name instead of $user['name']

    reply
    0
  • Cancelreply