Hello, faced with the problem of redirecting to another page in the event handler (sales_order_save_before).
In the handler, pointed out the need to go to the page / module / controller / action /
The controller:
$ this-> loadLayout ();
$ block = $ this-> getLayout () -> createBlock (’Package_Module_Block_Custom’, ‘custom_block’);
$ layout = $ this-> getLayout () -> getBlock (’content’) -> append ($ block);
$ this-> renderLayout ();
Most interesting is that when viewed in the debugger shows – everything is OK. In the end I generated the necessary html and output through outputBody ($ html);
But the page remains the same, the problem can not understand. Can anyone help?
