ZF2-224: InjectTemplateListener overrides 404 template
Description
What we need to do is one of the following:
- modify the InjectTemplateListener to not inject a template if a 404 is detected
- modify ActionController::notFoundAction() to set an explicit template on the returned view model
The former is the easiest route, and allows you to use the site-wide 404 template easily. The second allows for per-controller 404 templates, but would require code for inflecting the module namespace and controller name -- which is currently encapsulated already in the InjectTemplateListener.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2012-04-13T18:51:45.000+0000
Fixed in https://github.com/zendframework/zf2/pull/1042 - please test
Posted by Maks 3w (maks3w) on 2012-06-14T21:13:06.000+0000
PR Merged