mini\csrf()
function
Documentation
Create a CSRF token for a specific action
Convenience wrapper around new CSRF().
Signature
function csrf(string $action, string $fieldName = '__nonce__'): mini\CSRF
Parameters
| Name | Type | Default |
|---|---|---|
$action
|
string |
required |
$fieldName
|
string |
'__nonce__'
|