%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Home extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model(array('Common_model')); } public function index() { $data = array(); $head = array(); $head['title'] = $title = 'Sharda Corporation'; $head['keywords'] = 'Sharda Corporation'; $head['description'] = 'Sharda Corporation'; //Get banner details $data['bannerArray'] = $this->Common_model->getSingleRecord('tbl_banners','*',array('is_deleted'=>'0','status'=>'1','banner_type'=>'12')); //Get Business Details $data['quotesArray'] = $this->Common_model->getAllRecords('tbl_quotes','*',array('is_deleted'=>'0','is_display_home'=>'Y')); //Get Awards $data['awardsandrecognition'] = $this->Common_model->getAllRecords('tbl_awards','*',array('is_deleted'=>'0','is_display_home'=>'Y'),array('award_date'=>'DESC'),'4','0'); $data['leadershipArray'] = $this->Common_model->getAllRecords('tbl_leadership','*',array('is_deleted'=>'0','status'=>'1')); //Sharda Story $data['latestStory'] = $this->Common_model->getlatestdata('tbl_shardastory','*','story_date',array('status'=>'1')); $data['shardaStories'] = $this->Common_model->getAllshardastories('tbl_shardastory','*','story_date',array('status'=>'1'),array('story_date'=>'DESC'),'3','0'); //Get News Details $data['detailsArray'] = $this->Common_model->getAllRecords('tbl_happenings','id,title,slug,description,news_date,pdf_name,pdf_name1,pdf_name2, happening_image',array('is_deleted'=>'0','section'=>'4'),array('news_date'=>'DESC'),'6','0'); //Get Business Details $data['businessArray'] = $this->Common_model->getAllRecords('tbl_business','id,name,title,slug,description,city,business_image,site_logo,country',array('is_deleted'=>'0'),array('display_order'=>'ASC'),'100','0'); //Get Business Details $data['overviewArray'] = $this->Common_model->getSingleRecord('tbl_aboutus','*',array('is_deleted'=>'0','status'=>'1','category'=>'Home Overview')); // Get Homepage Content $page = 'home-page'; $page = $this->Public_model->getOnePage($page); //$this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; $arrSeo = $this->Public_model->getSeo('home'); $head['title'] = @$arrSeo['title']!='' ? @$arrSeo['title'] : $title; $head['description'] = @$arrSeo['description']; $head['keywords'] = @$arrSeo['keywords']; //Load View $this->render('home', $head, $data); } /* * Function : goOut */ private function goOut($page) { if ($page == null) { redirect(); } } }