Пошук по сайту
Результати пошуку за тегами 'opencart 3.0.3'.
Знайдено 2 результата
-
Notice: Undefined index: top in /home/host172/bildim.uz/htdocs/book/modification/catalog/controller/common/header.php on line 35Notice: Undefined index: top in /home/host172/bildim.uz/htdocs/book/modification/catalog/controller/common/header.php on line 35Notice: Undefined index: top in /home/host172/bildim.uz/htdocs/book/modification/catalog/controller/common/header.php on line 35Notice: Undefined index: top in /home/host172/bildim.uz/htdocs/book/modification/catalog/controller/common/header.php on line 35Warning: sprintf(): Too few arguments in /home/host172/bildim.uz/htdocs/book/modification/catalog/controller/common/header.php on line 71 34 foreach ($this->model_catalog_information->getInformations() as $result) { 35 if ($result['top']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) 71 $data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', true), $this->customer->getFirstName(), $this->url->link('account/logout', '', true)); не знаю как исправить. магазин в актуально работает переустановить не хочу пожалуйста помогите.....
- 9 відповідей
-
- opencart 3.0.3
- notice: undefined
- (і ще 1)
-
Здравствуйте! Помогите пожалуйста разобраться с проблемой! Описал все ниже. В базе у меня хранится html некоторых страниц. В этом коде есть шорткоды: {{ chunk.review }}, {{ chunk.slider }} {{ chunk.review }} - это фактически $data['chunk']['review'] = $this->load->controller('chunk/standart/review'); 1. В контроллере я получаю код из базы и хочу вставить его в twig файл, через переменную public function index() { $data['chunk']['review'] = $this->load->controller('chunk/standart/review'); $this->load->model('layout/layout'); // Получаем из базы HTML код $data['page_html'] = html_entity_decode($this->model_layout_layout->getLayoutCode(6, 1)); $this->response->setOutput($this->load->view('chunk/standart/index', $data)); } 2. В переменной $data['page_html'] хранится: <h2>Заголовок</h2> {{ chunk.review }} 3. Код файла index.twig: {{ page_html }} Проблема: Вместо того, чтобы получить: <h2>Заголовок</h2> <div class="review"> <div class="review-item"> ... </div> </div> Я получаю на выходе: <h2>Заголовок</h2> {{ chunk.review }} Если в файл index.twig вставить {{ chunk.review }} все нормально подтягивается.
- 2 відповіді
-
- twig
- opencart 3.0.3
-
(і ще 1)
Теги: