[fw-general] Re: "resolver could not resolve to a file" for non-view Application.
Philip Gabbert wrote > On Sat, Oct 6, 2012 at 9:18 AM, luk < > luke@ > > wrote: > >> >> I suggest to read this post: >> >> http://zend-framework-community.634137.n4.nabble.com/Exceptions-not-displayed-td4657358.html >> < >> http://zend-framework-community.634137.n4.nabble.com/Exceptions-not-displayed-td4657358.html >> > >> >> >> > If I'm reading this correctly, it's saying it's currently not possible to > catch the event. Just want to make sure I'm seeing what you're directing. > It technically doesn't answer my question, but appears it may indirectly. > The error is attempting to render a > 404: 'Zend\View\Renderer\PhpRenderer::render: Unable to render template > "404"; resolver could not resolve to a file' > > However, since I'm using view files, I don't even want this action. Is > there a way to overload the View class (like in ZFW1.x)? > > Is there some temporary default file I can put into place so I can see > what's happening? I've tried mapping view/error/404.phtml. I've tried > putting in the 404 from the skeleton project. None of them allows the 404 > to actually render... > > --- > Philip Post your code form Module.php class and from application config please then I may be able to help. - Cheers, -- Luke Mierzwa -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/resolver-could-not-resolve-to-a-file-for-non-view-Application-tp4657385p4657429.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com
Re: [fw-general] Re: "resolver could not resolve to a file" for non-view Application.
On Sat, Oct 6, 2012 at 9:18 AM, luk wrote: > > I suggest to read this post: > > http://zend-framework-community.634137.n4.nabble.com/Exceptions-not-displayed-td4657358.html > < > http://zend-framework-community.634137.n4.nabble.com/Exceptions-not-displayed-td4657358.html > > > > > If I'm reading this correctly, it's saying it's currently not possible to catch the event. Just want to make sure I'm seeing what you're directing. It technically doesn't answer my question, but appears it may indirectly. The error is attempting to render a 404: 'Zend\View\Renderer\PhpRenderer::render: Unable to render template "404"; resolver could not resolve to a file' However, since I'm using view files, I don't even want this action. Is there a way to overload the View class (like in ZFW1.x)? Is there some temporary default file I can put into place so I can see what's happening? I've tried mapping view/error/404.phtml. I've tried putting in the 404 from the skeleton project. None of them allows the 404 to actually render... --- Philip
Re: [fw-general] Validators and Zend\Form\Element\Text
-- Marc Tempelmeier wrote (on Monday, 08 October 2012, 03:46 PM +0200): > Both errors are shown (foo & bar) when the input is empty, like I > expected. Now I want to break after the first error. > > I added: > > $unit->add(array( > 'name' => 'xmlEnding', > 'validators' => array( > array( > 'name'=> 'NotEmpty', > 'options' => array( > 'message' => 'foo', > 'break_chain_on_failure' => true > ) > ), The problem is that "break_chain_on_failure" needs to be at the same level as "name" and "options": array( 'name' => 'NotEmpty', 'options' => array( 'message' => 'foo', ), 'break_chain_on_failure' => true, ) -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com
[fw-general] Validators and Zend\Form\Element\Text
Hi, I added two validators to my text element: In the Filter, where $unit is a fieldset input filter: $unit = new InputFilter(); $unit->add(array( 'name' => 'xmlEnding', 'validators' => array( array( 'name'=> 'NotEmpty', 'options' => array( 'message' => 'foo' ) ), array( 'name'=> 'Date', 'options' => array( 'format' => 'Y', 'message' => 'bar' ) ) ) )); $this->add($unit, 'unit'); Both errors are shown (foo & bar) when the input is empty, like I expected. Now I want to break after the first error. I added: $unit->add(array( 'name' => 'xmlEnding', 'validators' => array( array( 'name'=> 'NotEmpty', 'options' => array( 'message' => 'foo', 'break_chain_on_failure' => true ) ), array( 'name'=> 'Date', 'options' => array( 'format' => 'Y', 'message' => 'bar' ) ) ) )); The expected error would be only foo, but instead I got bar. Can someone explain me why? Thx Marc -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com