Welcome Guest, Not a member yet? Register   Sign In
Field Classes (help me)
#1

[eluser]najm[/eluser]
welcom

i am newbie in codeigniter and i want to do a captcha with rapyd Field Classes i write the code but it does not work this is my code please help me :

Code:
<?php
class Captcha_rapyd extends Controller {  
  
    function Captcha_rapyd()  
     {  
          parent::Controller();  
          $this->load->library("rapyd");  
     }
     function index()
     {
         $this->rapyd->load("fields");    
        
        
         $form->captcha = new captchaField("captcha", "captcha");  
        
        $form->build();  
        $data["output"] = $title->output;  
        $data["rapyd_head"] = $this->rapyd->get_head();      
        
     }
}
  
  
?>
#2

[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?>




Theme © iAndrew 2016 - Forum software by © MyBB