HMVC question

Hi!!!

How to use the files from views??

The output is a function of the "echo" in action



24.8k

from the example on github ```php public function helloAction() { return new Response('hello there'); } ``` whether you can use the view files???



83.4k

You can get the file and return it as part of the response:

public function helloAction()
{
    return new Response(file_get_contents('my-path/my-file.txt'));
}


24.8k

All the same, why not use the files in the folder views???