ReCaptcha plug-in, namespaces and external libraries

4 views
Skip to first unread message

Saul Howard

unread,
Sep 1, 2010, 6:54:23 AM9/1/10
to Haddock CMS
I've just added a recaptcha (http://www.google.com/recaptcha) plug-in.

They provided a library to use, so this time I wrapped in a namespace
as suggested with the markdown plug-in.

I used hpi_recaptcha as the namespace. I put the library itself in /
plug-ins/recaptcha/libraries

I had to edit the library to add the namespace directive at the top.

The code is in:

http://code.google.com/p/haddock-cms/source/browse/plug-ins/recaptcha/trunk/classes/helpers/Recaptcha_RecaptchaHelper.inc.php

Do you think this convention works?

Saul
Reply all
Reply to author
Forward
0 new messages