관리-도구
편집 파일: Coursesmodel.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Coursesmodel extends CI_Model { public function __construct() { parent::__construct(); $this->load->library('session'); } public function get(){ $this->db->select("*"); $this->db->from("courses"); $this->db->where(["courses_id"=>1]); $result = $this->db->get(); return $result->result(); } }