Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Can I rename filename of a view to xxx-xxx.volt?

As title, I have an action justTestAction(), I want to rename filename of this view to just-test. Is that possible?



65.7k
Accepted
answer
edited Feb '16

You can use pick() method to select any view you want. Example:

$this->view->pick(array('templates/test-test-test'));

Notice that pick accepts array() for parameter!