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

default template suffix #94

Open
minow opened this Issue May 22, 2013 · 4 comments

Comments

Projects
None yet
4 participants
@minow

minow commented May 22, 2013

Using composer to install zf2 skeleton along with developer tools. After enabling it I am getting server errors, like:

PHP Fatal error:  Uncaught exception 'Zend\\View\\Exception\\RuntimeException' with message 'Zend\\View\\Renderer\\PhpRenderer::render: Unable to render template "zend-developer-tools/toolbar/zendframework"; resolver could not resolve to a file' in C:\\Users\\Milan\\workspace\\HopkaupZEND\\vendor\\zendframework\\zendframework\\library\\Zend\\View\\Renderer\\PhpRenderer.php:499
Stack trace:
#0 C:\\Users\\Milan\\workspace\\HopkaupZEND\\vendor\\zendframework\\zend-developer-tools\\src\\ZendDeveloperTools\\Listener\\ToolbarListener.php(203): Zend\\View\\Renderer\\PhpRenderer->render(Object(Zend\\View\\Model\\ViewModel))
#1 C:\\Users\\Milan\\workspace\\HopkaupZEND\\vendor\\zendframework\\zend-developer-tools\\src\\ZendDeveloperTools\\Listener\\ToolbarListener.php(148): ZendDeveloperTools\\Listener\\ToolbarListener->renderEntries(Object(ZendDeveloperTools\\ProfilerEvent))
#2 C:\\Users\\Milan\\workspace\\HopkaupZEND\\vendor\\zendframework\\zend-developer-tools\\src\\ZendDeveloperTools\\Listener\\ToolbarListener.php(137): ZendDeveloperTools\\Listener\\ToolbarListener->injectToolbar(Object(ZendDe in C:\\Users\\Milan\\workspace\\HopkaupZEND\\vendor\\zendframework\\zendframework\\library\\Zend\\View\\Renderer\\PhpRenderer.php on line 499

adding 'default_template_suffix' key to module.config.php:

return array(
    'view_manager' => array(
        'default_template_suffix' => 'phtml',
        'template_path_stack' => array(
            'zenddevelopertools' => __DIR__ . '/../view',
        ),
    ),
);

fixes the issue.

@jerrybk108

This comment has been minimized.

Show comment
Hide comment
@jerrybk108

jerrybk108 Mar 13, 2014

I got a similar issue, would you please help me solve it?
Thanks!
untitled

jerrybk108 commented Mar 13, 2014

I got a similar issue, would you please help me solve it?
Thanks!
untitled

@Ocramius

This comment has been minimized.

Show comment
Hide comment
@Ocramius

Ocramius Mar 13, 2014

Member

We cannot enforce the default template suffix within ZDT, as it would override any settings provided by other users.

Member

Ocramius commented Mar 13, 2014

We cannot enforce the default template suffix within ZDT, as it would override any settings provided by other users.

@Ocramius Ocramius closed this Mar 13, 2014

@Ocramius Ocramius self-assigned this Mar 13, 2014

@Ocramius

This comment has been minimized.

Show comment
Hide comment
@Ocramius

Ocramius Mar 13, 2014

Member

Actually, this can be fixed by providing a direct template map, instead of a template path stack.

Member

Ocramius commented Mar 13, 2014

Actually, this can be fixed by providing a direct template map, instead of a template path stack.

@Ocramius Ocramius reopened this Mar 13, 2014

@findli

This comment has been minimized.

Show comment
Hide comment
@findli

findli May 18, 2015

in my case i fix it through:
// 'zenddevelopertools' => DIR . '/../view',
'ZendDeveloperTools' => DIR . '/../view',
in config/autload/config.php

findli commented May 18, 2015

in my case i fix it through:
// 'zenddevelopertools' => DIR . '/../view',
'ZendDeveloperTools' => DIR . '/../view',
in config/autload/config.php

findli added a commit to findli/ZendDeveloperTools that referenced this issue Sep 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment