23 lines
466 B
PHP
23 lines
466 B
PHP
<?php
|
|
if (!defined('BASEPATH'))
|
|
exit('No direct script access allowed');
|
|
|
|
class Slider_model extends CI_Model {
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
}
|
|
|
|
function list_sliders($id=0)
|
|
{
|
|
$this->db->select('*');
|
|
$this->db->from('slider');
|
|
//$this->db->where(array('status'=>1));
|
|
if($id!=0){$this->db->where(array('id'=>$id));}
|
|
$query = $this->db->get();
|
|
//echo $this->db->last_query();exit;
|
|
return $query;
|
|
}
|
|
|
|
}
|