update
This commit is contained in:
17
application/models/Form_fields_model.php
Normal file
17
application/models/Form_fields_model.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user