MMCT TEAM
Server IP : 192.185.129.71  /  Your IP : 3.135.188.55
Web Server : Apache
System : Linux bh-ht-3.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : svymadmin ( 4072)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home4/svymadmin/public_html/site/controllers/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home4/svymadmin/public_html/site/controllers/Happening.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Happening extends CI_Controller {

	function __construct()
    {
        parent::__construct();
        $this->load->database();
        $this->load->library('session');
        
        
       /*cache control*/
        $this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
        $this->output->set_header('Pragma: no-cache');
        
    }

	public function happenings_view($param='')
	{	

    	$pagedata['happenings'] = $this->db->get_where('health_happenings_tb', array('lhs_id' => $param))->row();
	$this->db->where_not_in('lhs_id',array($param));
    	$this->db->order_by("lhs_id", "desc");
		$this->db->limit("4");
		$pagedata['related'] = $this->db->get_where('health_happenings_tb', array('type' => $pagedata['happenings']->type) )->result_array();

		$this->load->helper('url');
		$this->load->view('happening_v', $pagedata);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */

MMCT - 2023