search

Home  >  Q&A  >  body text

How not to display the total, per_page and other fields in the pagination data set obtained by paginate in TP5, as long as dat

{

        "total": 1,

        "per_page": 12,

        "current_page": 1,

        "last_page": 1,

        "data": [

            {

                "id": "1520133437",

                "password": "1213456",

                "name": "小明"

            }

        ]

    }

2315 days ago1286

reply all(3)I'll reply

  • Summer

    Summer2018-07-13 14:09:36

    How can json data be directly assigned to an array? The value of json data must be obtained using an object

    reply
    0
  • 

    This json result is returned by my return, which is convenient for me to see.

    · 2018-07-13 14:32:46
  • 

    2018-07-13 14:03:28

    I assign the returned result to $user, and then I use $user['data'] to obtain it. The result will be an error, reminding me of "undefined array index"

    reply
    0
  • Cancelreply