Hi,

I have a bunch of calls that use conditional forward404s, such as:

        $action->forward404Unless($action->getUser()->getProviderId()
== $action->reservProvider->getProviderId(), self::genLogMessage
($action, ': consumer id does not match: actual: '.$action->getUser()-
>getConsumerId().' expected: '.$action->reservation->getConsumerId
()));

There is a message logged in each case.  The thing is, the message
really only needs to be generated if the 404 action is to be executed.

Does anyone know if PHP will process the complete forward404
{condition} line if the terms of the condition are not met?

ie: in the case above, if the user's providerId == the
reservProvider's providerId, will the log message portion of the call
be evaluated?

If so, I'd think it would be better in all cases to avoid using
conditional forward404's and instead have a separate if block to
process the condition.

Thanks,
Steve

--~--~---------~--~----~------------~-------~--~----~
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