Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

[Решено] Как вывести в html код в controller?


vfxbro2
 Share

Recommended Posts

Как вывести в /catalog/controller/product/category.php  HTML код?

 

Конкретно в Breadcrumbs, хочу вывести перед формированием хлебной крошки 2-го уровня <span>/</span>

Т.е. прямо в массиве, можно ли вывести свой html код?

 

if ($category_info) {
					$data['breadcrumbs'][] = array(
						'text' => $category_info['name'],
						
						'href' => $this->url->link('product/category', 'path=' . $path . $url)
					);
				}

 

Link to comment
Share on other sites


17 часов назад, Pavel666 сказал:

catalog\view\theme\ваша тема\template\product\category.tpl

  <ul class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php } ?>
  </ul>

 

Спасипотому что потому чтольшое, бро)

Тема закрыи!

Link to comment
Share on other sites


Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.