XF 2.0 What are the whitelisted 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.
 
PHP:
        $prefixes = [
            'are',
            'can',
            'count',
            'data',
            'display',
            'does',
            'exists',
            'fetch',
            'filter',
            'find',
            'get',
            'has',
            'is',
            'pluck',
            'print',
            'render',
            'return',
            'show',
            'total',
            'validate',
            'verify',
            'view',
        ];
 
Great list to save!!!

I just searched now for your code and found its in Util\Php.php file. Learning every day!!!
 
PHP:
        $prefixes = [
            'are',
            'can',
            'count',
            'data',
            'display',
            'does',
            'exists',
            'fetch',
            'filter',
            'find',
            'get',
            'has',
            'is',
            'pluck',
            'print',
            'render',
            'return',
            'show',
            'total',
            'validate',
            'verify',
            'view',
        ];

Thank you!
 
Back
Top Bottom