21,893
社区成员




function captcha() {
Configure::write( 'debug' , '0' );
$this ->autoRender = false;
$this ->Captcha->render();
}
<div class="row">
<?php echo $this->Form->input('Captcha', array('div'=>false,'label'=>__('Captcha') . ' *','class'=>'check', 'data-required' => true)); ?>
<div class="error-message required"><?php echo __('Please fill in your Captcha.');?></div>
</div>
echo $html ->image( array ( 'controller' => 'Users' , 'action' => 'captcha' ));