HOME


sh-3ll 1.0
DIR:/proc/self/root/proc/self/root/proc/thread-self/cwd/application/models/pages/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/thread-self/cwd/application/models/pages/NoticeModel.php
<?php
defined('BASEPATH') or exit('No direct script access allowed');

class NoticeModel extends CI_Model
{

	public function getNotice()
	{
		$this->db->select(" sha1(`notice_id`) as notice_id, `notice`");
		$this->db->where('status', 1);
		$this->db->order_by('notice_id', 'DESC');
		$query = $this->db->get('notice');
		return $query->result_array();
	}

	public function getBrandJsonData()
	{
		$this->db->select(" sha1(`notice_id`) as notice_id, `notice`");
		$this->db->where('status', 1);
		$this->db->order_by('notice_id', 'DESC');
		$query = $this->db->get('notice');
		echo json_encode($query->result_array());
	}

}