$container must not be accessed before initialization from within Action
I have the following header Action on an EditOrder resource page.
I am attempting to use Get $get($orderItem->id.'.quantity_to_return') to retrieve the quantity of items that are being returned so that I can show a preview of the $ amount that will be refunded. However, I am getting "$container must not be accessed before initialization" when attempting to call $get().
Is $get() not possible within a header Action? Any other way I can achieve this?
Thanks
1 Reply
you can use
$get
in header actions. Does it work?