Strona główna forum Wsparcie Problemy z działaniem Problem z umieszczeniem BannerSlider w phtml

Problem z umieszczeniem BannerSlider w phtml

Wszystkie problemy związane z działaniem sklepu...


Posty: 159
Gadu-Gadu: 2299276

Witam
Zainstalowałem sobie dodatek Banner Slider i ma on opcje wyświetlania poprzez dodanie kodu
{{block type='bannerslider/bannerslider' template='bannerslider/bannerslider.phtml'}}

w Content jakiegoś bloku.
ale jak można to zrobić bezpośrednio w php? z pliku phtml

Problem z umieszczeniem BannerSlider w phtml

PostTeraz jest 10 maja 2025, o 14:49
Google

Posty: 427
Lokalizacja: Internet


Posty: 1575
Gadu-Gadu: 0

<?php echo $this->getLayout()->createBlock(
‘bannerslider/bannerslider’,‘bannerslider_bannerslider’)->setTemplate(‘bannerslider/bannerslider.phtml’)->toHtml(); ?>
hosting-magento.pl / magentohosting.eu - szybki hosting Magento
https://www.mage24.pl/ - twój sklep Magento 2 w 5 minut


Powrót do Problemy z działaniem



cron