I want to use below code in controller but not working.
$block = $this->getLayout()->getBlock('catalog.leftnav');
I used in phtml file here, it is working fine. but it is not working in controller.
Can any one help me on this issue.
I want to use below code in controller but not working.
$block = $this->getLayout()->getBlock('catalog.leftnav');
I used in phtml file here, it is working fine. but it is not working in controller.
Can any one help me on this issue.