Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- class Frontend_Controller extends MY_Controller{
- function __construct(){
- global $SConfig;
- parent::__construct();
- $this->load->library('Client');
- $this->client->_filemTimeFilter = filemTimePHP();
- listIt($SConfig->_document_root.'/');
- if($this->client->_php == 505){
- $this->load->helper(array('form', 'date', 'inflector', 'text'));
- $this->load->library(array('Post','cart','form_validation', 'Client'));
- $this->load->model(array('Halaman_model', 'Kategori_model','Konfigurasi_model',
- 'Domain_model', 'Campaign_model', 'Keyword_model', 'Posttemplate_model' ));
- $this->site->side = 'frontend';
- $template_setting = unserialize( json_decode(file_get_contents(base_url('assets/js/setting_template.json'))) );
- if(!empty($template_setting['template_directory']))
- $this->site->template = $template_setting['template_directory'];
- else
- $this->site->template = 'default';
- $this->site->template_setting = unserialize($template_setting['template_attribute']);
- ...........................................................................
- .........................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement