Skip to content

Instantly share code, notes, and snippets.

View Shoukat-bjr's full-sized avatar

Shoukat Mirza Shoukat-bjr

View GitHub Profile
<?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']);
}