This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Common_model extends CI_Model { | |
public function get_data($array) { | |
// if set column | |
if(isset($array['column'])) { | |
$this->db->select($array['column']); | |
} |