[eluser]najm[/eluser]
thank you i have solve this problem :
the controller :
Code:
<?php
class Captcha_rapyd extends Controller {
function Captcha_rapyd()
{
parent::Controller();
$this->load->library("rapyd");
}
function index()
{
$this->rapyd->load("fields","dataform");
$form = new DataForm("captcha_rapyd/index/process");
$form->captcha = new captchaField("captcha", "captcha");
//$form->build($form);
$form->build_form();
$data["output"] = $form->output;
$data["rapyd_head"] = $this->rapyd->get_head();
$this->load->view('captcha_rapyd_view',$data);
}
}
?>
the view (view name is captcha_rapyd_view) :
Code:
<?=$output?>
<?=$rapyd_head?>