Fatal error: Call to a member function get_page() on null in C:\xampp\htdocs\punto\Models\product.php on line 23
alguien me puede ayudar si alguien ha usado zebra que me ayude
Código
function show_product(){ include ('../libs/Zebra_Pagination.php'); $sql = 'SELECT * FROM product limit 0,4'.(($pagination->get_page()-1)+$rec).'.'.$rec; $record = $this->conexion->conexion->query($sql); $item =0; $total->conexion->query('SELECT * FROM product '); //save total //number of record to be displayed in screen $rec = 10; //zebra class $pagination = new Zebra_Pagination(); //zebra functions $pagination->records($total_record); $pagination->records_per_page($rec); if(!$this->conexion->conexion->query($sql)){ } if($record->num_rows>0){ while($show = $record->fetch_array(MYSQLI_ASSOC)){ $item += 1; echo '<tr> <td>'.$item.'</td> <td>'.$show["code"].'</td> <td>'.$show["product"].'</td> <td>'.$show["price"].'</td> <td>'.$show["stock"].'</td> <td><button class="btn btn-warning frm-action"><span class="glyphicon glyphicon-edit"><span<button><button class="btn btn-danger frm-action"><span class="glyphicon glyphicon-trash"><span<button></td> </tr>'; } } else{ echo '<tr><td colspan="7">no hay registros</td></tr>'; } }