I have the same problem after upgrading to ZF2.2And I can trace it back to
the Zend\View\Resolver\TemplatePathStack::resolve method.In 2.1.5 resolve on
line 299 tests for: if (pathinfo($name, PATHINFO_EXTENSION) !=
$defaultSuffix)in 2.2.0 this is changed to on line 302if
(pathinfo($name,
You can also set the layout in the 404 script. This could be a save layout
with no calls to the url-viewhelper or other helpers that rely on
RouteMatch.
First line of your 404-script:
?php $this-layout()-setTemplate('layout/error'); ?
--
View this message in context:
The current ZF2 escaper will double encode html entities so you can't use
amp;nbsp; amp;copy; amp;euro; in strings you call escapeHtml on.
Futhermore Owasp warns for double encoding (see
https://www.owasp.org/index.php/Category:Encoding)
Any suggestions?
Thanks,
Bart.
--
View this message