We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon\Mvc\View\Simple in module

Hi,

I want tu use Phalcon\Mvc\View\Simple in one module (multi-module-application), because the module has only one view. In the module definition I set the "view" in the DI (registerServices()). But now the application must set to "$app->useImplicitView(false);" in the bootstrap (index.php). But the other modules should use the general view rendering.

How can I set "$app->useImplicitView(false);" for one module?

Greetings Mario



98.9k

Currently useImplicitView applies for all the modules in the application, you can use manual bootstraping to implement this behavior: https://docs.phalcon.io/en/latest/reference/applications.html#understanding-the-default-behavior