[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/HTML/Helpers/ -> Form.php (summary)

Joomla! Content Management System

Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 86 lines (2 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 2 functions

  token()
  csrf()

Functions
Functions that are not part of a class:

token(array $attribs = array()   X-Ref
Displays a hidden token field to reduce the risk of CSRF exploits

Use in conjunction with Session::checkToken()

param: array  $attribs  Input element attributes.
return: string  A hidden input field with a token

csrf($name = 'csrf.token')   X-Ref
Add CSRF form token to Joomla script options that developers can get it by Javascript.

param: string  $name  The script option key name.
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer