public function __construct() { parent::__construct(); $this->_objectName = $this->getObjectName(); $this->_canViewObjects[] = $this->_objectName; $this->_canViewObjects = array_map('strtolower', $this->_canViewObjects); }
public function __construct() { parent::__construct(); // Load classes $this->lang->load('language', config_item('selected_lang')); $this->load->model('language/language_model', 'language'); }
public function __construct() { parent::__construct(); // Load classes $this->lang->load('user', config_item('selected_lang')); $this->load->model('user/user_model', 'user'); }
public function indexAction() { $this->_resource->addInlineJs(' var externalsEnabled = ' . intval($this->_configMain->get('allow_externals')) . '; '); parent::indexAction(); }
/** * Constructor * * @access public */ function Members() { parent::Backend_Controller(); $this->permission->secure_restrict(); $this->layout->set_section('members'); $this->load->model('member_model'); }
public function __construct() { parent::__construct(); $langPath = $this->_configMain->get('lang_path') . $this->_configMain->get('language') . '/import.php'; Lang::addDictionaryLoader('import', $langPath, Config::File_Array); $this->_iLang = Lang::lang('import'); }
public function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->breadcrumbs->push('Post', site_url('admin/post')); $this->breadcrumbs->push('Category', site_url('admin/post/category')); }
public function __construct() { parent::__construct(); // Load classes $this->load->model('copythis/copythis_model', 'copythis'); $this->lang->load('copythis', config_item('selected_lang')); }
public function __construct() { // Parent __construct parent::__construct(); // Load Helper $this->load->model('backend/helper_model'); }
public function __construct() { parent::__construct(); Db_Object_Builder::writeLog($this->_configMain['use_orm_build_log']); Db_Object_Builder::setLogPrefix($this->_configMain['development_version'] . '_build_log.sql'); Db_Object_Builder::setLogsPath($this->_configMain['orm_log_path']); }
public function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->load->helper('post/post'); $this->load->helper('media/media'); $this->breadcrumbs->push('Post', site_url('admin/post')); }
public function __construct() { parent::__construct(); $this->load->helper('user/user'); $this->load->library('form_validation'); $this->breadcrumbs->push('Users', site_url('admin/user')); $this->breadcrumbs->push('Groups', site_url('admin/user/group')); }
function __construct() { parent::__construct(); if (!$this->cms_lib->logined()) { redirect('backend/login'); } $this->load->library('session'); }
public function __construct() { parent::__construct(); // Load classes $this->load->model('pages/pages_model', 'pages'); $this->load->model('routes/routes_model', 'routes'); $this->lang->load('pages', config_item('selected_lang')); }
public function __construct() { parent::__construct(); // Load classes $this->lang->load('menu', config_item('selected_lang')); $this->config->load('menu/menu', TRUE); $this->load->model('menu/menu_model', 'menu'); }
public function __construct() { parent::__construct(); // Load classes $this->load->model('page/page_model', 'page'); $this->load->model('route/route_model', 'route'); $this->lang->load('page/page', $this->config->item('selected_lang')); }
public function __construct() { parent::__construct(); $this->load->model('modules_m'); // No records in the database, lets change that if ($this->modules_m->count_all() == 0) { $this->refresh(); } }
public function __construct() { parent::__construct(); $this->template->append_metadata(Assets::adminJs('picker', 'js/pickdate')); $this->template->append_metadata(Assets::adminJs('picker.time', 'js/pickdate')); $this->template->append_metadata(Assets::adminJs('picker.date', 'js/pickdate')); $this->template->append_metadata(Assets::adminJs('legacy', 'js/pickdate')); $this->load->model('events_m'); }
public function __construct() { parent::__construct(); $bgStorage = new Bgtask_Storage_Orm(Model::factory('bgtask'), Model::factory('Bgtask_Signal')); $logger = new Bgtask_Log_File('./.log/test' . date('YmdHis') . '.txt'); $this->_tManager = Bgtask_Manager::getInstance(); $this->_tManager->setStorage($bgStorage); $this->_tManager->setLogger($logger); }
public function __construct() { parent::__construct(); // View data $this->data['nu_title'] = lang('user'); $this->data['subnav_active'] = array('index' => FALSE, 'add' => FALSE, 'edit' => FALSE); // Load classes $this->load->model('user/user_model', 'user'); $this->lang->load('user', config_item('selected_lang')); }
public function __construct() { parent::__construct(); //set up the menu tabs $this->app_module = 'system'; $this->app_tab = 'system'; $this->app_page = 'settings'; $this->app_module_name = 'System'; $this->app_page_title = 'Sitemap'; }
public function __construct() { parent::__construct(); $this->load->helper('user/user'); $this->load->library('form_validation'); if (strpos(current_url(), 'changepwd') !== FALSE or strpos(current_url(), 'profile') !== FALSE) { } else { $this->breadcrumbs->push('Users', site_url('admin/user')); } }
public function __construct() { parent::__construct(); // Add missing javascript $this->template->append_metadata(Assets::adminJs('ckeditor', 'js/ckeditor')); $this->template->append_metadata(Assets::adminJs('picker', 'js/pickdate')); $this->template->append_metadata(Assets::adminJs('picker.time', 'js/pickdate')); $this->template->append_metadata(Assets::adminJs('picker.date', 'js/pickdate')); $this->template->append_metadata(Assets::adminJs('legacy', 'js/pickdate')); $this->load->model('matches_m'); }
public function __construct() { /* * Load classes by autoloader * class should be loaded before unserializing */ class_exists('Db_Query'); class_exists('Db_Query_Part'); parent::__construct(); if ($this->_configMain->get('use_cache') && $this->_cache) { Db_Query_Storage::setCache($this->_cache); } $this->_storage = Db_Query_Storage::getInstance('file'); $this->_session = Store_Session::getInstance('Reports'); }
public function prorule_update() { //1.get data $id = $this->input->post("id"); $postdata = parent::post_param(); //2.check and preparing new data; $where = array(); $newdata = array(); $where['id'] = $id; $newdata["start_time"] = $postdata["start_time"]; $newdata["end_time"] = $postdata["end_time"]; $newdata["condition"] = $postdata["condition"]; $newdata["type"] = 1; //0:购物车促销规则 1:商品限时抢购 $newdata["award_value"] = $postdata["award_value"]; $newdata["name"] = $postdata["name"]; $newdata["intro"] = $postdata["intro"]; $newdata["award_type"] = $postdata["award_type"]; $newdata["is_close"] = $postdata["is_close"]; $newdata["user_group"] = implode(",", $postdata["group"]); $this->m_market->data_save("iwebshop_promotion", $where, $newdata); redirect("d=sysadmin&c=market&m=prorule_list"); }
function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->load->model('teams_m'); }
public function __construct() { parent::__construct(); $this->load->model('gallery_m'); }
public function __construct() { parent::__construct(); $this->_manager = new Backend_Orm_Connections_Manager($this->_configMain->get('db_configs')); }
public function __construct() { parent::__construct(); $this->loginControl(); }