Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code below to a template file. #92

Open
mihaelsh opened this issue Jun 8, 2017 · 1 comment
Open

Add code below to a template file. #92

mihaelsh opened this issue Jun 8, 2017 · 1 comment

Comments

@mihaelsh
Copy link

mihaelsh commented Jun 8, 2017

In configuration of Magento 2 shows this info - Add code below to a template file
$this->getLayout()->createBlock("Magestore\Bannerslider\Block\SliderItem")->setSliderId(your_slider_id)->toHtml();
Where need to insert it in?

@wester9208
Copy link

wester9208 commented Jul 25, 2018

@mihaelsh
inside phtml file

echo $this->getLayout()->createBlock("Magestore\Bannerslider\Block\SliderItem")->setSliderId(189)->toHtml();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants