Thanks for the replies. Normally, I use partials and do return custom view strings. This case is a bit different. I have a few variations of an action:
applyToReservation, applyToImmediateReservation, etc. Some of the non SUCCESS views are the same for these actions, so I placed them in applyToReservation, ie: applyToReservationIneligible. So, in applyToImmediateReservation, I wanted to call setTemplate() to call the Ineligible view. >From your replies, I guess I am better off creating a partial with the Ineligible content for all of these actions, and then just returning Ineligible in each. Thanks, Steve On Jul 7, 10:58 am, Bernhard Schussek <bschus...@gmail.com> wrote: > As Marijn said, either return sfView::ERROR or a custom string, like > 'Ineligible'. This will result in the actions > > templateNameError.php and > templateNameIneligible.php > > being used. "templateName" is the name of your action by default, but > can be changed using setTemplate(). > > Bernhard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---