Created
June 29, 2018 08:31
-
-
Save codeleson/382c78ba215d3ce86f605f08c1731779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
But my link is not working my link is http://localhost/smspanel2/data/. | |
this code is on my url page | |
$json = array( | |
'meta'=>array( | |
'page' => 1, | |
'pages'=> 1, | |
'perpage'=> -1, | |
'total' => count($data), | |
'sort' => 'asc', | |
'field' => 'id' | |
), | |
'data' => $data | |
); | |
header('Content-Type: application/json'); | |
echo json_encode($json, JSON_PRETTY_PRINT); | |
when put my url then data is not showing and then i saw console and console is showing error | |
Uncaught TypeError: Cannot read property 'class' of undefined | |
at Object.template (right.js:124) | |
at HTMLTableCellElement.<anonymous> (scripts.bundle.js:1) | |
at Function.each (vendors.bundle.js:1) | |
at _.fn.init.each (vendors.bundle.js:1) | |
at HTMLTableRowElement.<anonymous> (scripts.bundle.js:1) | |
at Function.each (vendors.bundle.js:1) | |
at _.fn.init.each (vendors.bundle.js:1) | |
at Object.setupTemplateCell (scripts.bundle.js:1) | |
at Object.insertData (scripts.bundle.js:1) | |
at Object.l (scripts.bundle.js:1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment