Hi, me again

it is solved now by doing this

==================
$captchaimg->setMessage("My Custom Message", 'badCaptcha');
==================

This came to my mind only after I did some digging around and had a
look at the code
'Zend/captcha/Word.php' (ancestor class)

Where the message template and keywords are defined

=====================================
    const MISSING_VALUE = 'missingValue';
    const MISSING_ID    = 'missingID';
    const BAD_CAPTCHA   = 'badCaptcha';
    /*...@-*/

    /**
     * Error messages
     * @var array
     */
    protected $_messageTemplates = array(
        self::MISSING_VALUE => 'Empty captcha value',
        self::MISSING_ID    => 'Captcha ID field is missing',
        self::BAD_CAPTCHA   => 'Captcha value is wrong',
    );

==========================================

Thanks anyway


-- 
=======================
Registered Linux User #460714
Currently Using Fedora 8, 10
=======================

Reply via email to