public function weight($options)
 {
     $options['sort'] = 'weight';
     $options['dir'] = 'asc';
     $sql = cms_flatter_content($options, $this->table);
     $records = $this->db->query($sql);
     return $records->result();
 }
 public function show($options)
 {
     $sql = cms_flatter_content($options, $this->table);
     $query = $this->db->query($sql);
     return $query->result_array();
 }