[fw-general] Re: template names with dots in name aren't possible after Update to ZF2 2.2

2013-05-20 Thread Bart van der Linden
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,

[fw-general] Re: [ZF2] Disable layout for 404 error page

2012-10-24 Thread Bart van der Linden
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:

[fw-general] ZF2 escapeHtml double encodes html entities

2012-09-10 Thread Bart van der Linden
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