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

useImplicitView in multi-module

Hi All

Is it possible to set the application configuration such that, useImplicitView(false) is only affecting one module in a multi-module setup.

$application->useImplicitView(false);

Thanks in advance



85.5k
Accepted
answer

i can think of :


    $module = $this->router->getModuleName();

    if ($module === 'my_implicit_module'){
         $application->useImplicitView(false);    
    }

    echo $application->handle()->getContent();

Thanks Izo