There is a task to send email via console. Part of the contents of the letter - statistics - is formed through the ViewHelper "accountsStat". ViewHelper itself “accountsStat” also uses other ViewHelper's (for example, “decodeUrl”).
As I understand it, the problem is that when you start the application through the console, ZF2 does not initialize the View, as it does when it starts via http.
Therefore, inside the ViewHelper "accountsStat" empty $ this-> getView ().
Of course, when working with the console, you can initialize the View for each ViewHelper.
But as I already wrote, in the accountsStat.phtml itself, other ViewHelperes are used, which also results in the need to cling to the View yourself ...
I would like to know if this problem can be solved in a complex way: i. configure based on the "view_manager" file "module.config.php" View (+ taking into account \ Application \ Module-> getViewHelperConfig ()) for all ViewHelper'ov, as it would be for http?