policybot/application/models/Menu_model.php
2021-11-30 16:26:55 +05:30

23 lines
408 B
PHP

<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Menu_model extends CI_Model {
public function __construct() {
parent::__construct();
}
function list_menu()
{
$this->db->select('*');
$this->db->from('menu');
$this->db->where(array('parent_id'=>0));
$query = $this->db->get();
//echo $this->db->last_query();exit;
return $query;
}
}