Hi everybody,
I'm trying to use a custom captcha adapter extending and overriding the 
Zend_Captcha_Image adapter.

The trouble is that when I try to use this adapter, Zend throws the next 
Exception:

==============================
Message: Plugin by name '' was not found in the registry; used paths: 
Zend_Captcha_: Zend/Captcha/ 
==============================

The code I'm using inside a Zend_Form class looks like this:
=============================
        // Add a captcha
        $this->addElement('captcha', 'captcha', array(
            'label'      => 'write next 5 characters:',
            'captcha'    => array(
                'captcha' => new My_Captcha_Image(),
                'font' => APPLICATION_PATH . '/fonts/Arial_Bold.ttf',
                'imgUrl' => '/images/captcha',
                'fontSize' => 30,
                'wordLen' => 5,
                'timeout' => 300
            ),
        ));
        $this->captcha->addPrefixPath('My_Captcha','My/Captcha','captcha');
==============================

Any idea of what I'm doing wrong??

-- 
Alayn Gortazar

Reply via email to