CodeIgniter 2 - captcha helper?
The problem was in the path's for images. One thing, even with the log threshold set to four, I was getting NO indication of any kind of problem. I set it to absolute paths and everything worked fine...
function index() { $this->load->helper('form'); $this->load->helper('captcha'); $this->load->model('captcha_model'); $vals = array( 'img_path' => '/var/www/mysite.com/images/captcha/', 'img_url' => 'http://mysite.com/images/captcha/', 'font' => '../../system/fonts/texb.ttf', 'img_width' => '150', 'img_height' => 30, 'expiration' => 7200, "time" => time() ); $data['cap'] = create_captcha($vals); $cap = array( 'captcha_time' => $data['cap']['time'], 'ip_address' => $this->input->ip_address(), 'word' => $data['cap']['word'] ); $this->captcha_model->add_captcha($cap); $data['main_content'] = 'admin/landing.php'; $this->load->view('includes/template', $data); }