PHP code example of mage2kishan / module-hero-slider
1. Go to this page and download the library: Download mage2kishan/module-hero-slider library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mage2kishan / module-hero-slider example snippets
xml
<referenceContainer name="content">
<block class="Panth\HeroSlider\Block\Slider"
name="hero.category.promo"
template="Panth_HeroSlider::slider.phtml"
before="-">
<arguments>
<argument name="slider_identifier" xsi:type="string">category_promo</argument>
</arguments>
</block>
</referenceContainer>