Mikael
Mikael

Reputation: 1319

TYPO3 how to set specific view

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

Answers (1)

Wouter Wolters
Wouter Wolters

Reputation: 46

You can use $this->view->setTemplatePathAndFilename('path/to/your/template.html'); to set a custom view.

Upvotes: 3

Related Questions