1

I cannot get ZfcUser to work with my application which is based on ZF2 skeleton. For all the routes (register, login, ...) I get the following error:

Zend\View\Renderer\PhpRenderer::render: Unable to render template "_form.phtml"; resolver could not resolve to a file

The form.phtml is of course in the right place. However, it seems that the resolver is looking for the file only in "/view" while it should be looking in "/view/zfc-user/user/_form.phtml".

The ZfcUser module's template_path_stack contains "DIR . '/../view'", however, I do not understand how ZF2 constructs the sub-dirs and which configuration might impair this logic.

Thanks for any hints

Joe Beeker
  • 11
  • 1

1 Answers1

1

Have you tried adding this in your modules template_path_stack? Otherwise this should solve your problem:

'zfc-user' => __DIR__ . '/../view',

You can read about it in the ZfcUser wiki on GitHub

Cheesebaron
  • 24,131
  • 15
  • 66
  • 118
Warezzzz
  • 11
  • 3