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

2018-07-13 13:45:08
0
3
1306

{

        "total": 1,

        "per_page": 12,

        "current_page": 1,

        "last_page": 1,

        "data": [

            {

                "id": "1520133437",

                "password": "1213456",

                "name": "小明"

            }

        ]

    }



reply all(2)
Summer

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

  • reply This json result is returned by my return, which is convenient for me to see.
    author 2018-07-13 14:32:46


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"

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template