1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I have a problem with $template->getParams()

Discussion in 'XenForo Development Discussions' started by ngocphuong, Jun 17, 2016.

  1. ngocphuong

    ngocphuong Member

    I have a code in Listener.php (template_post_render)

    MyClass_MyFile::_writerExtraData($template->getParams(), $containerData);
    Content of function _writerExtraData

    protected static $_extraContainerData = array();
    protected static 
    $_extraParams = array();

    public static function 
    _writerExtraData(array $params$containerData)
    self::$_extraContainerData $containerData;
    self::$_extraParams $params;
    $template->getParams() is FULL values but self::$_extraParams lost a some values (ex: selectedTabId)
    I can't not use XenForo_Helper_Criteria::pageMatchesCriteria() if it is not full

    Thanks you for help.

Share This Page