Bit of an edge case this one, but is there a way to override the
arguments.event.norender() setting?
I've got a handler that has multiple actions which call a private
action. Most of the time I don't want a view, but sometimes I do. So
my handler looks something like this, where I want the foo action to
render a view. I know that I could just set a flag, but I like to know
what is possible
public function foo( event )
{
runEvent( event="payment.sendOrderConfirmation", private=true );
// this doesn't seem to run..
arguments.event.setView("foo.bar");
}
public function bar( event )
{
runEvent( event="payment.sendOrderConfirmation", private=true );
}
private function sendOrderConfirmation( event )
{
.. do stuff...
arguments.event.norender();
}
Yeah, I agree with you; but, as I said most of the time I don't want a
view so was trying to reduce the amount of code (yes, I'm that lazy!)
Always good to know, what you can do
I did originally have it in my service layer and then I moved it out,
but to be honest I can't remember why, I'm sure there was a good
reason at the time!