Russ, unfortunately the $exception variable doesn't seem to available when I
send a 404 (see code below).  The $exception variable IS available when I
throw an unhandled exception from an action.  Unfortunately, my entire app
was built to throw errors (for missing parameters and just about everything
else) using the forward404 method.

[code]
public function executeSomething(sfWebRequest $request){
     $this->forward404(" throwing an error the way that sample code in
documentation is ")
}
[code]

Any thoughts?

Using latest symfony 1.2.8

On Sun, Sep 13, 2009 at 7:49 AM, rooster (Russ) <[email protected]>wrote:

>
> On Sep 13, 9:05 am, pcummins <[email protected]> wrote:
> > How do I get the message from a call to $this->forward404() into a
> > customized error404Success.php template?
>
> Your custom template should have a variable called $exception, which
> is the sfError404Exception object... The message is the exception
> message ($exception->getMessage())
>
> Russ.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to