Form
Utility class for form elements
abstract
| since |
1.5 |
|---|---|
| package |
Joomla CMS |
Methods
csrf
Add CSRF form token to Joomla script options that developers can get it by Javascript.
csrf( name = 'csrf.token') :
static
| since |
3.8.0 |
|---|
Arguments
- name
stringThe script option key name.
Response
void
token
Displays a hidden token field to reduce the risk of CSRF exploits
token(mixed||string|int attribs = []) :
static
Use in conjunction with Session::checkToken()
| see | Session::checkToken() |
|---|---|
| since |
1.5 |
Arguments
- attribs
array<string|int, mixed>Input element attributes.
Response
stringA hidden input field with a token
Properties
loaded
Array containing information for loaded files.
static
| since |
3.8.0 |
|---|
Type(s)
array<string|int, mixed>