News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Padraic Brady's Blog:
ZF Blog Tutorial Part 10 Comments, reCAPTCHA and Akismet Filtering
June 05, 2008 @ 09:38:14

Padraic Brady has posted part ten in his series on the construction of a blogging system with the Zend Framework. This part of the series focuses on the commenting system and using a reCAPTCHA and Akismet system on it to prevent spam.

Blogs all have two other features besides actual content. They allow readers to post comments, and they offer XML feeds of their content. With the blog application itself coming along nicely, and with Addendum #2's revised styling, it's a good time to take a peek at adding comments.

He has created a custom Service component for the framework that interfaces directly with the reCAPTCHA service (along with a form helper, view helper and validation methods) so that an element can be added just like anything else in a form. Code of its use is included.

He works this into his comment form, including the Controller and the action that would be called. He shows how to attach an Akismet call to the form too via the framework's own service methods. Finally, he handles the other side of things - the administrative piece and displaying the (hopefully non-spam) comments back out on the post.

15 comments voice your opinion now!
recaptcha akisment comment public spam prevent zendframework


blog comments powered by Disqus

Similar Posts

Avnet Labs Blog: TDD with Zend Framework - testing controllers

Hasin Hayder's Blog: RSA Encrypting and Decrypting data with Zend_Crypt_Rsa Library

PHPRiot.com: Zend Framework 101: Zend_Loader

Rob Allen's Blog: New Zend Framework Blog/Website

Nick Halstead's Blog: Making a TAG Cloud out of Zend_Cache


Community Events





Don't see your event here?
Let us know!


introduction threedevsandamaybe developer symfony2 api laravel podcast opinion refactor language unittest framework install list testing release series interview code community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework