COVID2019 и это вот все. Друзья, вся эта история начинает плохо пахнет. Мойте руки, не ходите в люди. Отложите все плановые покупки и положите в носок заначку. Заприте ваших родителей, бабушек-дедушек на даче. Лучше перебдеть чем недобдеть. Берегите себя!

Zoloto

Соучастники
  • Публикации

    2
  • Зарегистрирован

  • Посещение

  • Days Won

    1

Zoloto last won the day on August 12 2014

Zoloto had the most liked content!

Zoloto's Achievements

  1. вот что лежит в контролере пхп : <?php class ControllerModuletgmarketslider extends Controller { private $error = array(); public function index() { $language = $this->load->language('module/tg_market_slider'); $this->data = array_merge($this->data, $language); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('setting/setting'); $this->load->model('tool/image'); if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { $this->model_setting_setting->editSetting('tg_market_slider', $this->request->post); $this->session->data['success'] = $this->language->get('text_success'); $this->redirect(HTTPS_SERVER . 'index.php?route=module/tg_market_slider&token=' . $this->session->data['token']); } $this->data['text_image_manager'] = 'Image manager'; $this->data['token'] = $this->session->data['token']; $text_strings = array( 'heading_title', 'text_enabled', 'text_disabled', 'text_content_top', 'text_content_bottom', 'text_column_left', 'text_column_right', 'entry_layout', 'entry_position', 'entry_status', 'entry_sort_order', 'button_save', 'button_cancel', 'button_add_module', 'button_remove', ); foreach ($text_strings as $text) { $this->data[$text] = $this->language->get($text); } $config_data = array( 'slider_general_status', 'slider_height', 'slider_delay', 'slides_number', 'sublayers_number', 'slider', 'slider_mode', ); foreach ($config_data as $conf) { if (isset($this->request->post[$conf])) { $this->data[$conf] = $this->request->post[$conf]; } else { $this->data[$conf] = $this->config->get($conf); } } if (isset($this->error['warning'])) { $this->data['error_warning'] = $this->error['warning']; } else { $this->data['error_warning'] = ''; } if (isset($this->session->data['success'])) { $this->data['success'] = $this->session->data['success']; unset($this->session->data['success']); } else { $this->data['success'] = ''; } $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_module'), 'href' => $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'), 'separator' => ' :: ' ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('module/tg_market_slider', 'token=' . $this->session->data['token'], 'SSL'), 'separator' => ' :: ' ); $this->data['action'] = $this->url->link('module/tg_market_slider', 'token=' . $this->session->data['token'], 'SSL'); $this->data['cancel'] = $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'); $this->load->model('localisation/language'); $this->data['languages'] = $this->model_localisation_language->getLanguages(); $this->template = 'module/tg_market_slider.tpl'; $this->children = array( 'common/header', 'common/footer', ); $this->data['no_image'] = $this->model_tool_image->resize('no_image.jpg', 80, 80); $this->response->setOutput($this->render()); } private function validate() { if (!$this->user->hasPermission('modify', 'module/tg_market_slider')) { $this->error['warning'] = $this->language->get('error_permission'); } if (!$this->error) { return TRUE; } else { return FALSE; } } } ?>
  2. День добрый, хотел установить на ок шоп вот эту приблуду, ну уж очень нравится ее функционал, вроде выдернул из купленого добросовестно шаблона и вроде бы поставил, указал на слаидеры, отключил родной слаидер ...но почему то оно не пошло, в чем может быть дела ? посматреть можно тут : http://baron.golden-water.ru/