Zig
Member
Hi everyone!
My team is currently facing an issue where a critical variable is unavailable to PAGE_CONTAINER. When checking with
Is there a way to feed a
Thanks in advance!
My team is currently facing an issue where a critical variable is unavailable to PAGE_CONTAINER. When checking with
{{ dump($variable) }}
we've found that PAGE_CONTAINER returns null
, but dumping to any other template that's included in the page will return the array that we need. In this situation the custom addon in question is extending another custom addon via XFCP and we're using a code event listener---ControllerPostDispatch---to trigger the method that defines $variable
. This arrangement works fine in XF1, but we've not had any luck in XF2. (It's worth noting that my predecessor implemented the class extensions in XF1 via a LoadClassController event listener instead of XFCP. I'm not sure why that was the case, but since that event isn't available in XF2, I'm using XFCP instead.)Is there a way to feed a
$variable
into PAGE_CONTAINER in this scenario?Thanks in advance!