data not binding to Bootstrap table in cakephp 3.4 -
i using cakephp 3.4 , bootstrap 3.3.7 versions. trying load bootstrap table data controller method. code is
in controller method:
public function test(){ $data = $this->user->find("all"); $this->set(array( 'data' => $leads, '_serialize' => array('data') )); } the ctp file code is:
<table id="table-leads" data-toggle="table" data-url="<?php echo base_url;?>test"> <tbody> <tr> <th data-field="name">name</th> </tr> </tbody> </table> the data returned in console is:
{ "data": [ { "name": "user 1" }, { "name": "user 2" }, { "name": "user 3" } ] } there no error returned table not filled data. can 1 me?
there no mention attribute inside bootstrap documentation sure don't use script bootstrap table or else using example jquery load ?
Comments
Post a Comment