I have found out how to do a view override in Phalcon with the help of this: <https://stackoverflow.com/a/19941928/74651>

The problem is that it uses this method for the layout to, but if the directory does not exists on the original viewpath it does enter in this method.

Where does phalcon checks the directory for the layout and how to override it?