CodeIgniter Forums

Full Version: CI Captcha Problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

El Forum

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