visa_app/application/models/NewModel.php
venbatechnologies@gmail.com 21a1f94641 visa app
2018-07-27 13:47:26 +05:30

25 lines
525 B
PHP
Executable File

<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
class NewModel extends CI_Model
{
/**
* To get the employee listing
* @return array $result : result of the query(returns as employee details)
*/
function __construct(){
parent::__construct();
$this->load->database();
}
function NewListing()
{
$this->db->from('actor');
$query = $this->db->get();
$result = $query->result();
return $result;
}
}
?>