%PDF-1.4
Directory : /var/www/vhosts/lautnusantara.com/httpdocs/web/app/Models/ |
<?php namespace App\Models; use CodeIgniter\Model; class Slideshow_Model extends Model { public function get_slideshow($limit = false) { $builder = $this->db->table('ssn_slideshow'); $builder->select('ssn_slideshow.*'); $builder->where('ssn_slideshow.active', '1'); $builder->where('ssn_slideshow.trash', '0'); if ($limit != false) { $builder->limit($limit); } $builder->orderBy('ssn_slideshow.urut', 'ASC'); return $builder->get(); } } ?>