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