cancel
Showing results for 
Search instead for 
Did you mean: 

How we use ko template: getTemplate() in controller?

How we use ko template: getTemplate() in controller?

Hi,
As i use ko template: getTemplate() in phtml file it work fine but when i try same in controller it not works can someone help how we can use in controller.
Thanks in advance

2 REPLIES 2

Re: How we use ko template: getTemplate() in controller?

Hello @piyush_khandelw 

 

Please refer https://magento.stackexchange.com/questions/232177/magento2-how-to-call-template-from-a-controller for the solution

 

Hope it helps.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: How we use ko template: getTemplate() in controller?

Hi @Meetanshi 
am i not looking for calling phtml files as i want to call select.html in controller which is inside the web/template of module.