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



83.4k

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