PHP Classes

it's a litle mistake in documentatoion

Recommend this page to a friend!

      DHTML and CSS CAPTCHA  >  All threads  >  it's a litle mistake in documentatoion  >  (Un) Subscribe thread alerts  
Subject:it's a litle mistake in documentatoion
Summary:litle mistake
Messages:2
Author:Evgenij
Date:2008-06-27 16:27:54
Update:2008-06-28 04:10:24
 

  1. it's a litle mistake in documentatoion   Reply   Report abuse  
Picture of Evgenij Evgenij - 2008-06-27 16:27:54
In doc's expamples you wrote something like this:
$captcha = new CSniperCaptcha(5, 'btn_submit');
CSniperCaptcha::DrawRefs();
But it seems to me that's not correct.
$captcha = new CSniperCaptcha(5, 'btn_submit');
$captcha->DrawRefs();
When i did like this it start working correctly.

  2. Re: it's a litle mistake in documentatoion   Reply   Report abuse  
Picture of Alexander Selifonov Alexander Selifonov - 2008-06-28 04:10:24 - In reply to message 1 from Evgenij
The both calls should work. The only difference is when You need "buffered" output (to the var instead of echoing), You should not call static (CSniperCaptcha::DrawRefs()) because there is no object that remembers "buffered" state.