예제 #1
0
파일: Config.php 프로젝트: pdkhuong/VideoFW
 function __construct()
 {
     parent::__construct(TRUE);
     $this->load->model('Config_model', NULL, TRUE);
     $this->Config_model = Config_model::getInstance();
     set_userdata('active_menu', strtolower(get_class($this)));
 }
예제 #2
0
 private function _frontendConstruct()
 {
     $this->load->model('Config_model', NULL, TRUE);
     $config_model = Config_model::getInstance();
     $listGenreId = $this->Config_model->getValue("left_nav_genre");
     $this->load->library('layout');
     if ($listGenreId) {
         $this->load->model('Genre_model', NULL, TRUE);
         $genre_model = Genre_model::getInstance();
         $genreList = $genre_model->getRange('id IN(' . $listGenreId . ')', 0, 100);
         $extraData = $this->layout->getExtraData();
         $extraData['left_nav_genre'] = $genreList;
         $this->layout->setExtraData($extraData);
     }
     //set layout
     $this->layout->setTemplate("layout/frontend.php");
     $this->layout->setSkin(base_url() . 'themes/frontend/');
     $skin = $this->layout->getSkin();
     // Site global resources
     $this->layout->js($skin . 'js/jquery-2.1.3.js');
     $this->layout->js($skin . 'js/bootstrap.js');
     $this->layout->js($skin . 'js/slick.min.js');
     $this->layout->js($skin . 'js/fe.js');
     $this->layout->css($skin . 'css/style.css');
 }
예제 #3
0
 function __construct()
 {
     parent::__construct(TRUE);
     set_userdata('active_menu', strtolower(get_class($this)));
     $this->_config = $this->config->config;
     $this->load->library('simple_html_dom');
     $this->load->file(APPPATH . 'components/ImportDramaCool.php');
     $this->dramaCool = new ImportDramaCool();
     $this->load->model('Config_model', NULL, TRUE);
     $this->Config_model = Config_model::getInstance();
     set_time_limit(0);
 }