Welcome Guest, Not a member yet? Register   Sign In
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/




Theme © iAndrew 2016 - Forum software by © MyBB