Files
crm-ms1/application/models/Form_fields_model.php
2026-05-27 11:44:10 -04:00

18 lines
424 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Form_fields_model extends CI_Model
{
protected $table = 'form_fields';
public function get_active_fields($form_key)
{
return $this->db
->where('form_key', $form_key)
->where('active', 1)
->order_by('field_order', 'ASC')
->get($this->table)
->result_array();
}
}