Reputation: 1319
How to set specific view in my extension?
$this->view->assign('example', $example);
- it means that view path must fit with controller and action names. I need to set specific views with another path and name! Is it possible?
Upvotes: 0
Views: 1380
Reputation: 46
You can use $this->view->setTemplatePathAndFilename('path/to/your/template.html'); to set a custom view.
Upvotes: 3