search

Home  >  Q&A  >  body text

How to use the tp5 model result method, and what values ​​can its parameter $type take?

Use the tp5 model result method (actually a method inherited from the Jump class) to return data to the front end. We only know that the parameter $type can be "json". I wonder if there are other parameter values? After testing, when $type is "", "array", or "collection", an error will be reported when calling.

phpcn_u16587phpcn_u165871958 days ago1037

reply all(0)I'll reply

No reply
  • Cancelreply