Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



67.7k
Accepted
answer

i can think of :


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

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

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

Thanks Izo