25 lines
525 B
PHP
Executable File
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;
|
|
}
|
|
|
|
}
|
|
?>
|