On Wed, May 15, 2013 at 3:48 PM, guenterh <[email protected]> wrote: > Hi > > some files I'm using for layout and / or templates contain dots in their > name like > layout/layout.home.phtml > or > facet.basic.html > > After updating to the latest version of ZF2 (2.2) these files are no longer > resolved by TemplatePathStack > > The error occurs here > $file = new SplFileInfo($path . $name); > if ($file->isReadable()) > > in the resolve method. > > For me it's strange because - if I'm not wrong - SplFileInfo type should be > from standard PHP and not the ZF2 framework itself > (sorry I'm not really experienced with PHP) and I didn't updated my PHP > infrastructure (PHP 5.3.3 on CentOS) in between > > When I change the name to something like > layout/layouthome.phtml > they can be resolved. > > Same result (error doesn't occur) when I'm going to switch back to another > branch running a former version of ZF2
This is very odd; literally the only change in 2.2 (and I think it was in 2.1.5 as well) was this one: https://github.com/zendframework/zf2/pull/3996 In looking at your examples, one thing leaps to mind: the template names typically should not have a suffix applied, as the resolver will add that for you. Have you tried using just the names "layout/layouthome", "facet.basic", etc? -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
