PHP 클래스 Neos\FluidAdaptor\ViewHelpers\Security\CsrfTokenViewHelper

..). Note: You won't need this ViewHelper if you use the Form ViewHelper, because that creates a hidden field with the CSRF token for unsafe requests automatically. This ViewHelper is mainly useful in conjunction with AJAX. = Examples =
...
Now, the CSRF token can be extracted via JavaScript to be appended to requests, for example with jQuery: jQuery (exemplary): $.ajax({ url: '', type: 'POST', data: { __csrfToken: $('#someDiv').attr('data-csrf-token') } });
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$securityContext Neos\Flow\Security\Context

공개 메소드들

메소드 설명
render ( ) : string

메소드 상세

render() 공개 메소드

public render ( ) : string
리턴 string

프로퍼티 상세

$securityContext 보호되어 있는 프로퍼티

protected Context,Neos\Flow\Security $securityContext
리턴 Neos\Flow\Security\Context