I've read the docs about the hierarchical rendering levels, and how to disable certain levels from the controller or the DI setup: https://docs.phalconphp.com/en/3.3/views#disabling-render-levels
I would like to do that from the view file that belongs to the action. So not from the controller, but from the /views/controllername/actionname.phtml . Is it possible? I use the \MyPhalcon\View\PhpEngine.
In case you wonder why I want to do this: Some of my forms needs to respond with just a partial HTML. So not the entire webpage. And I want to put that logic into the viwe file, not the controller. I consider Controller to be business loginc, I dont want to write things there that is doing things for the view. The controller (or rather, the person who writes the controllers) should not need t know about what will happen in the view. So I dont want to disable rendering levels in the controller files, but instead I want to do it in the view phtml files.