控制器
class Welcome extends CI_Controller
{
public function index()
{
$this->load->helper('url');
$this->load->view('welcome_message');
$this->load->model('Home_model');
$data['query'] = $this->Home_model->getcategory();
$this->load->view('userheader', $data);
}
}
模型
class Home_model extends CI_Model
{
public function getcategory()
{
$this->db->select('id, cat_value, cat_title','isactive');
$query = $this->db->get('js_job_categories');
return $query->result();
}
}
意见
我将页眉和页脚包含在页脚下方再次显示的相同内容
在标题顶部它不显示查询结果如何解决问题..