1

i have custom tempalte. I get template store view in my block.

protected function _prepareLayout()
    {

        $this->getToolbar()->addChild(
            'store_switcher_xanka',
            'Magento\Backend\Block\Store\Switcher',
            [
                'label' => __('Store View:'),
                'template' => 'Magento_Backend::store\switcher.phtml',
                'class' => 'add primary add-design-change'
            ]
        );
        return parent::_prepareLayout();
    }

but when i try call

$section = $this->getRequest()->getParam('section');
 $website = $this->getRequest()->getParam('website');
 $store = $this->getRequest()->getParam('store');

        echo $store; echo $website ;echo $website ;die();

it return nothing. so how do get it. Any help me ? thanks

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.