• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI Captcha Problems

#1
[eluser]dennismonsewicz[/eluser]
I am trying to use CI's native captcha plugin and I am having the darnest time trying to get the dern thing working!

Here is my code (from controller):

Code:
$vals = array(
    'word'         => 'test',
    'img_path'     => './captcha/',
    'img_url'     => base_url() . 'img/captcha/',
    'img_width'     => '150',
    'img_height' => 30,
    'expiration' => 7200
       );
    
    $cap = create_captcha($vals);
    $data['cap'] = $cap;

Code from View:

Code:
<?php echo print_r($cap); ?>

now when I print_r on this variable I get a 1 returned! Any help?

#2
[eluser]Genetic[/eluser]
I found a solution in this problem in http://ellislab.com/forums/viewthread/129071/


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.