?
Current Path : /home1/savoy/public_html/old_site/application/controllers/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/old_site/application/controllers/site.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Site extends CI_Controller { function __construct() { parent::__construct(); session_start(); $this->load->model('mastermodel'); $this->load->library('mail'); } function index($page='') { if($page=='') $page='home'; redirect('site/'.$page); } function home() { $data=array(); $_SESSION['page']='home'; $this->load->view('home',$data); } function about_us() { $data=array(); $_SESSION['page']='about-us'; $this->load->view('about-us',$data); } function services() { $data=array(); $_SESSION['page']='services'; $this->load->view('services',$data); } function solutions() { $data=array(); $_SESSION['page']='solutions'; $this->load->view('solutions',$data); } function contact() { $data=array(); $_SESSION['page']='contact'; $this->load->view('contact',$data); } function why_savoy() { $data=array(); $this->load->view('why-savoy',$data); } function team() { $data=array(); $this->load->view('team',$data); } function vision() { $data=array(); $this->load->view('vision',$data); } function insert_feedback() { $postdata = $this->mastermodel->get_post_values(); $this->mastermodel->insert_feedback($postdata); $data['msg'] = "Thank You! WE WILL CONTACT YOU SOON"; $this->load->view('message',$data); $_SESSION['page']='solutions'; $this->load->view('solutions',$data); } } /* End of file site.php */ /* Location: ./application/controllers/site.php */