Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable_zf_model = true, still looks for layout #104

Open
stratease opened this issue Nov 19, 2014 · 1 comment
Open

disable_zf_model = true, still looks for layout #104

stratease opened this issue Nov 19, 2014 · 1 comment

Comments

@stratease
Copy link

Zfc module.config.php

    /**
    * If set to true disables ZF's notion of parent/child layouts in favor of
    * Twig's inheritance model.
    */
    'disable_zf_model' => true,

This is set to true, and as far as I can tell I've disabled all references to the layout, but the application throws the following error:

    Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'Zend\View\Renderer\PhpRenderer::render: Unable to render template "layout/layout"; resolver could not resolve to a file' in ...vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php:498

Am I missing something?

@saadhre
Copy link

saadhre commented May 15, 2015

I have same issue. Workaround: simply put your default Twig layout to view/layout/layout.twig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants