|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/serbaantik.com/public_html/application/controllers/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class About extends Public_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->data_header['browser_title'] = 'About Serba Antik';
$this->data_header['meta_description'] = 'About Serba Antik';
//get tenants
$this->db->select('*')->from('testimonies')->where('status', '1')->order_by('priority', 'ASC');
$this->data['tenants'] = $this->db->get()->result_array();
//get config
$this->db->select('brand_title, testimony_title')->from('configuration')->where('id_configuration', 1);
$website_data = $this->db->get()->row();
$this->data['brand_title'] = $website_data->brand_title;
$this->data['testimony_title'] = $website_data->testimony_title;
//get about page content
$this->data['about'] = $this->db->select('aboutpage_title, aboutpage_text, about_image3, about_image4, statistic1_title, statistic2_title, statistic3_title, statistic4_title, statistic5_title, statistic1_text, statistic2_text, statistic3_text, statistic4_text, statistic5_text, aboutpage_subtitle, aboutpage_subtext, aboutpagesec1_title, aboutpagesec1_text, about_image5, aboutpagesec2_title, aboutpagesec2_text, about_image6, aboutpagesec3_title, aboutpagesec3_text, about_image7, about_image8, about_image9, about_image10, aboutpage_text, aboutpage_subtext, aboutpage_subtext2')->from('home_centerbanners')->where('id_home_centerbanners', 1)->get()->row_array();
//get teams
$this->db->select('name, position, image, content')->from('teams')->where('status', '1')->order_by('priority', 'ASC');
$this->data['teams'] = $this->db->get()->result_array();
//get designer testimonials
$this->data['testimonies'] = $this->db->select('customer_name, testimony, image, work_position')->from('testimonies')->where('type', 'designer')->where('status', '1')->order_by('priority', 'ASC')->get()->result_array();
//LOAD VIEW
$this->load->view('template/header', $this->data_header);
$this->load->view('about', $this->data);
$this->load->view('template/footer', $this->data_footer);
}
}