Matt C. Well-known member May 25, 2018 #1 Could someone tell me what the whitelisted prefixes that I use in templates are? Thank you.
ludak Active member May 26, 2018 #2 I am aware that methods in callback (assuming that is what you are trying to do have to start with is OR get Try changing your callback method to start with either one of those two prefixes.
I am aware that methods in callback (assuming that is what you are trying to do have to start with is OR get Try changing your callback method to start with either one of those two prefixes.
Jeremy P XenForo developer Staff member May 26, 2018 #3 PHP: $prefixes = [ 'are', 'can', 'count', 'data', 'display', 'does', 'exists', 'fetch', 'filter', 'find', 'get', 'has', 'is', 'pluck', 'print', 'render', 'return', 'show', 'total', 'validate', 'verify', 'view', ];
PHP: $prefixes = [ 'are', 'can', 'count', 'data', 'display', 'does', 'exists', 'fetch', 'filter', 'find', 'get', 'has', 'is', 'pluck', 'print', 'render', 'return', 'show', 'total', 'validate', 'verify', 'view', ];
ludak Active member May 26, 2018 #4 Great list to save!!! I just searched now for your code and found its in Util\Php.php file. Learning every day!!!
Great list to save!!! I just searched now for your code and found its in Util\Php.php file. Learning every day!!!
Matt C. Well-known member May 26, 2018 #5 Jeremy P said: PHP: $prefixes = [ 'are', 'can', 'count', 'data', 'display', 'does', 'exists', 'fetch', 'filter', 'find', 'get', 'has', 'is', 'pluck', 'print', 'render', 'return', 'show', 'total', 'validate', 'verify', 'view', ]; Click to expand... Thank you!
Jeremy P said: PHP: $prefixes = [ 'are', 'can', 'count', 'data', 'display', 'does', 'exists', 'fetch', 'filter', 'find', 'get', 'has', 'is', 'pluck', 'print', 'render', 'return', 'show', 'total', 'validate', 'verify', 'view', ]; Click to expand... Thank you!