<?php
//Modelo
class mantenedor_staff_categories_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
protected function _get_pk($table)
{
$primary_name="";
if($table!="")
{
$CI =& get_instance();
$field_data = $CI->db->field_data($table);
foreach ($field_data as $key => $value)
{
if($value->primary_key)
{
$primary_name = $value->name;
}
}
}
return $primary_name;
}
}