Help. How to implement the button "update image" under the captcha so that a new captcha appears without reloading the page?
In the controller :
$captcha = Captcha::instance('default'); $content = View::factory('index/auth/v_auth_register') ->bind('captcha', $captcha) ->bind('errors', $errors) ->bind('data', $data);
In the form of :
<div class="number-box"> <div class="top-box"> <?php echo $captcha; ?> </div> <span class="gray-text"><a href="#">Обновить картинку</a></span> </div>