Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

default template suffix #94

Open
minow opened this issue May 22, 2013 · 5 comments
Open

default template suffix #94

minow opened this issue May 22, 2013 · 5 comments
Assignees

Comments

@minow
Copy link

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
Copy link

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

@Ocramius
Copy link
Member

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

@Ocramius Ocramius self-assigned this Mar 13, 2014
@Ocramius
Copy link
Member

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
Copy link

findli commented May 18, 2015

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

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-developer-tools; a new issue has been opened at laminas/laminas-developer-tools#23.

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

No branches or pull requests

5 participants