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

Where do I get the second and third parameters for this function?

Liam W

Well-known member
#1
PHP:
XenForo_Helper_Criteria::pageMatchesCriteria();
I can't figure out where to get the last 2 parameters...
 

tyteen4a03

Well-known member
#2
PHP:
XenForo_Helper_Criteria::pageMatchesCriteria();
I can't figure out where to get the last 2 parameters...
public static function pageMatchesCriteria($criteria, $matchOnEmpty = false, array $params, array $containerData)

$params is just extra data that may be useful to the matching process, and $containerData is data used in the template rendering process. You can set the extraData bit during template_post_render.