CodeIgniter Forums
CI Captcha Problems - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: CI Captcha Problems (/thread-22294.html)



CI Captcha Problems - El Forum - 09-03-2009

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


CI Captcha Problems - El Forum - 10-12-2009

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