Re: [fw-general] Re: "resolver could not resolve to a file" for non-view Application.

2012-10-10 Thread Philip G
On Mon, Oct 8, 2012 at 11:41 AM, luk  wrote:

> Philip Gabbert wrote
> > 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
>

(resent - this time to the list!)

I see what's happening now. By default ZFW seems to be looking for a view
file for rendering. Template mapping for "404" isn't defined, so thus is
errors out. This makes sense since I didn't define a template_map -- it's a
REST based application, no .phtml files are to be defined. I want the
output to be XML or JSON (if json headers or format=json is passed).

Is there a way to define the View layer, within module.config.xml (we're
using XML for cross-language compatibility) to JSON or XML return? Or
better yet, defining a view class for handling this myself?

There aren't many docs about overloading the View layer like there was with
ZF1.x.

Philip


[fw-general] Re: "resolver could not resolve to a file" for non-view Application.

2012-10-08 Thread luk
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.

2012-10-08 Thread Philip G
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


[fw-general] Re: "resolver could not resolve to a file" for non-view Application.

2012-10-06 Thread luk


Philip Gabbert wrote
> (This is resend as I believe my original emails weren't going through --
> sent via my personal email, vs my gmail email)
> 
> I'm writing a purely REST based application--ie: no view.
> 
> How do I get around this Zend\View exception:
> 
> - Uncaught exception 'Zend\View\Exception\RuntimeException' with message
> 'Zend\View\Renderer\PhpRenderer::render: Unable to render template "404";
> resolver could not resolve to a file'
> 
> On a 404, I want it to route to a specific Module Controller, with
> specific
> parameters, or at least something to identify what the error was--pretty
> much exactly what ErrorController was in ZF1.0--in order to output the
> proper REST header and body format.

I suggest to read this post:
http://zend-framework-community.634137.n4.nabble.com/Exceptions-not-displayed-td4657358.html

  



-
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-tp4657385p4657396.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