It is a bad idea. According to pattern, View nothing should know about Controller.
How to create a widget that can be used in different places without passing a variable,
Some like that https://forum.phalcon.io/discussion/330/widgets-with-volt-rendering or use HMVC pattern
Hi,
I don't know what you mean exactly with "widget", but this may help you:
partials: https://docs.phalcon.io/en/latest/reference/views.html#using-partials
tag helper: https://docs.phalcon.io/en/latest/reference/tags.html#creating-your-own-helpers
Why you even wanna do that ? Use some service/helper or partial view.