File: /home/cafsindia/allyindian_com/backend/application/controllers/Persons.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once("Secure_Controller.php");
abstract class Persons extends Secure_Controller{
public function __construct($module_id = NULL){
parent::__construct($module_id);
}
public function suggest(){
$suggestions = $this->xss_clean($this->Person->get_search_suggestions($this->input->post('term')));
echo json_encode($suggestions);
}
public function get_row($row_id){
$data_row = $this->xss_clean(get_person_data_row($this->Person->get_info($row_id), $this));
echo json_encode($data_row);
}
}
?>