OPERATION_REDIRECT
OPERATION_REDIRECT
captcha operation type
VisualCaptcha Component
画像認証画面へのリダイレクト、認証処理を行います。
利用方式、対象アクション、認証要素key名称を指定してください。
$operationType : string
利用方式
public $components = array(
'VisualCaptcha.VisualCaptcha' => array(
'operationType' => VisualCaptchaComponent::OPERATION_REDIRECT,
'targetAction' => 'answer',
'identifyKey' => 'Questionnaire'???
)
)
public $components = array(
'VisualCaptcha.VisualCaptcha' => array(
'operationType' => VisualCaptchaComponent::OPERATION_EMBEDDING,
'identifyKey' => 'VisualCaptcha'
)
)
<?php
echo $this->element(
'VisualCaptcha.visual_captcha', array(
'identifyKey' => 'VisualCaptcha'
)
); ?>