Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

Deathno0te

Новачок
  
  • Публікації

    19
  • З нами

  • Відвідування

Deathno0te's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

2

Репутація

  1. да просто 5 утра ) все такое ) сорян за не правоту )
  2. Спаааассииибки !! буду теперь знать что еще и туда надо писать ! Теперь все заработало
  3. файл abaut.tpl <?php echo $header; ?> <h1><?php echo $heading_title; ?></h1> </header> <div class="top_pd"> <div class="container-fluid" id="slider_cont"> <div class="container-fluid"> <div class="row"> <div class="slider"> <?php echo $content_top; ?> </div> </div> </div> </div> <div class="container-fluid white_bg relative item_pd"> <div class="container"> <div class="row"> <ul class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) { ?> <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li> <?php } ?> </ul> </div> </div> <div class="row"> <div id="content" class="container <?php echo $class; ?>"> <?php echo $description; ?> </div> </div> </div> <?php echo $footer; ?> Да у меня нет тут <?php echo $content_bottom; ?> <?php echo $column_right; ?> потому что в данном макете они мне там не нужны Контроллер скопировал как у вас файл с языком <?php // Heading $_['heading_title'] = 'О нас'; $_['text_error'] = 'Страница не найдена!'; ?> захожу по своей ссылки http://persifleur.ru/abaut - болт !
  4. а почему так а не так $this->response->setOutput($this->load->view('information/abaut', $data)); Можете объяснить ?
  5. изменил <?php class ControllerInformationAbaut extends Controller { private $error = array(); public function index() { $this->load->language('information/abaut'); $this->document->setTitle($this->language->get('heading_title')); $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('information/abaut') ); $data['heading_title'] = $this->language->get('heading_title'); $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); $this->response->setOutput($this->load->view('information/abaut', $data)); } } ?> Все так же не работает
  6. Версия ocStore 2.3.0.2.2 и вывод, что вы не смогли мне помочь
  7. Сделал - http://prntscr.com/fjimqt - не работает, по по прежнему ссылается на файл information.tpl а не на contact.tpl Идем далее, уже выше писал что создал для абаут контроллер вот он <?php class ControllerInformationAbaut extends Controller { private $error = array(); public function index() { $this->load->language('information/abaut'); $this->document->setTitle($this->language->get('heading_title')); $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('information/abaut') ); $data['heading_title'] = $this->language->get('heading_title'); $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/abaut.tpl')) { $this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/information/abaut.tpl', $data)); } else { $this->response->setOutput($this->load->view('invois/template/information/abaut.tpl', $data)); } } } ?> Сделал языковой файл - http://prntscr.com/fjinni создал по новой схему - http://prntscr.com/fjio6h Применил дизайн - http://prntscr.com/fjiote зашел по ссылки http://persifleur.ru/abaut - не работает все так же ссылается на это файл information.tpl а не на abaut.tpl
  8. Так же создал контроллер для страницы абаут <?php class ControllerInformationAbaut extends Controller { private $error = array(); public function index() { $this->load->language('information/abaut'); $this->document->setTitle($this->language->get('heading_title')); $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('information/abaut') ); $data['heading_title'] = $this->language->get('heading_title'); $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/abaut.tpl')) { $this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/information/abaut.tpl', $data)); } else { $this->response->setOutput($this->load->view('invois/template/information/abaut.tpl', $data)); } } } ?> и как раз таки для этой страницы выбран нужный мне модуль в схеме http://prntscr.com/fjihpj и все равно не работает. Вывод, что со стандартными контролерами которые были созданы при установки движка, что собственным, все равно не работает
  9. Господи, почему вам так и не понять то вот сделал я то что вы просили http://prntscr.com/fjie4w вывод ? не приминался файл contact.tp !не смотря на то что ест и контроллер причем стандартный, есть схема ( с выбором не нужного для меня модуля ), есть страница и там выбран дизайн, и все равно не работает
  10. Зачем ? мне что то там выбирать ? Вы не понимаете что ли ? Мне нужно что бы к страницам приминался нужный мне файл с нужным мне дизайном, а не всегда один и тот же
  11. где я спорил ? м? Зачем мне там что то выбирать если у меня все это есть в файле contact.tpl не применяется этот файл к странице контакты То же самое и для остальных!
  12. а зачем он ? есть контролер для контактов но и он не пашет по этому тут дело не в контроллере Контроллер контактов <?php class ControllerInformationContact extends Controller { private $error = array(); public function index() { $this->load->language('information/contact'); $this->document->setTitle($this->language->get('heading_title')); if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { $mail = new Mail(); $mail->protocol = $this->config->get('config_mail_protocol'); $mail->parameter = $this->config->get('config_mail_parameter'); $mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname'); $mail->smtp_username = $this->config->get('config_mail_smtp_username'); $mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8'); $mail->smtp_port = $this->config->get('config_mail_smtp_port'); $mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout'); $mail->setTo($this->config->get('config_email')); $mail->setFrom($this->config->get('config_email')); $mail->setReplyTo($this->request->post['email']); $mail->setSender(html_entity_decode($this->request->post['name'], ENT_QUOTES, 'UTF-8')); $mail->setSubject(html_entity_decode(sprintf($this->language->get('email_subject'), $this->request->post['name']), ENT_QUOTES, 'UTF-8')); $mail->setText($this->request->post['enquiry']); $mail->send(); $this->response->redirect($this->url->link('information/contact/success')); } $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('information/contact') ); $data['heading_title'] = $this->language->get('heading_title'); $data['text_location'] = $this->language->get('text_location'); $data['text_store'] = $this->language->get('text_store'); $data['text_contact'] = $this->language->get('text_contact'); $data['text_address'] = $this->language->get('text_address'); $data['text_telephone'] = $this->language->get('text_telephone'); $data['text_fax'] = $this->language->get('text_fax'); $data['text_open'] = $this->language->get('text_open'); $data['text_comment'] = $this->language->get('text_comment'); $data['entry_name'] = $this->language->get('entry_name'); $data['entry_email'] = $this->language->get('entry_email'); $data['entry_enquiry'] = $this->language->get('entry_enquiry'); $data['button_map'] = $this->language->get('button_map'); if (isset($this->error['name'])) { $data['error_name'] = $this->error['name']; } else { $data['error_name'] = ''; } if (isset($this->error['email'])) { $data['error_email'] = $this->error['email']; } else { $data['error_email'] = ''; } if (isset($this->error['enquiry'])) { $data['error_enquiry'] = $this->error['enquiry']; } else { $data['error_enquiry'] = ''; } $data['button_submit'] = $this->language->get('button_submit'); $data['action'] = $this->url->link('information/contact', '', true); $this->load->model('tool/image'); if ($this->config->get('config_image')) { $data['image'] = $this->model_tool_image->resize($this->config->get('config_image'), $this->config->get($this->config->get('config_theme') . '_image_location_width'), $this->config->get($this->config->get('config_theme') . '_image_location_height')); } else { $data['image'] = false; } $data['store'] = $this->config->get('config_name'); $data['address'] = nl2br($this->config->get('config_address')); $data['geocode'] = $this->config->get('config_geocode'); $data['geocode_hl'] = $this->config->get('config_language'); $data['telephone'] = $this->config->get('config_telephone'); $data['fax'] = $this->config->get('config_fax'); $data['open'] = nl2br($this->config->get('config_open')); $data['comment'] = $this->config->get('config_comment'); $data['locations'] = array(); $this->load->model('localisation/location'); foreach((array)$this->config->get('config_location') as $location_id) { $location_info = $this->model_localisation_location->getLocation($location_id); if ($location_info) { if ($location_info['image']) { $image = $this->model_tool_image->resize($location_info['image'], $this->config->get($this->config->get('config_theme') . '_image_location_width'), $this->config->get($this->config->get('config_theme') . '_image_location_height')); } else { $image = false; } $data['locations'][] = array( 'location_id' => $location_info['location_id'], 'name' => $location_info['name'], 'address' => nl2br($location_info['address']), 'geocode' => $location_info['geocode'], 'telephone' => $location_info['telephone'], 'fax' => $location_info['fax'], 'image' => $image, 'open' => nl2br($location_info['open']), 'comment' => $location_info['comment'] ); } } if (isset($this->request->post['name'])) { $data['name'] = $this->request->post['name']; } else { $data['name'] = $this->customer->getFirstName(); } if (isset($this->request->post['email'])) { $data['email'] = $this->request->post['email']; } else { $data['email'] = $this->customer->getEmail(); } if (isset($this->request->post['enquiry'])) { $data['enquiry'] = $this->request->post['enquiry']; } else { $data['enquiry'] = ''; } // Captcha if ($this->config->get($this->config->get('config_captcha') . '_status') && in_array('contact', (array)$this->config->get('config_captcha_page'))) { $data['captcha'] = $this->load->controller('extension/captcha/' . $this->config->get('config_captcha'), $this->error); } else { $data['captcha'] = ''; } $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); $this->response->setOutput($this->load->view('information/contact', $data)); } protected function validate() { if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 32)) { $this->error['name'] = $this->language->get('error_name'); } if (!preg_match($this->config->get('config_mail_regexp'), $this->request->post['email'])) { $this->error['email'] = $this->language->get('error_email'); } if ((utf8_strlen($this->request->post['enquiry']) < 10) || (utf8_strlen($this->request->post['enquiry']) > 3000)) { $this->error['enquiry'] = $this->language->get('error_enquiry'); } // Captcha if ($this->config->get($this->config->get('config_captcha') . '_status') && in_array('contact', (array)$this->config->get('config_captcha_page'))) { $captcha = $this->load->controller('extension/captcha/' . $this->config->get('config_captcha') . '/validate'); if ($captcha) { $this->error['captcha'] = $captcha; } } return !$this->error; } public function success() { $this->load->language('information/contact'); $this->document->setTitle($this->language->get('heading_title')); $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('information/contact') ); $data['heading_title'] = $this->language->get('heading_title'); $data['text_message'] = $this->language->get('text_success'); $data['button_continue'] = $this->language->get('button_continue'); $data['continue'] = $this->url->link('common/home'); $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); $this->response->setOutput($this->load->view('common/success', $data)); } } Схема http://prntscr.com/fji175 Дизайн в админке http://prntscr.com/fji1dr Для контактов все есть, и тоже не работает всегда ссылается ток на information.tpl
  13. В админке создал схему http://prntscr.com/fjhu86 В админке создал http://prntscr.com/fjhudu на фтп лежит файл http://prntscr.com/fjhuhf Шаблон не применяться почему то а всегда ток information.tpl

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.