News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

C7Y:
Reflections on Designing an IRC Bot in PHP, Part 2
0 comments :: posted Friday April 18, 2008 @ 11:14:56
voice your opinion now!

Matthew Turland notes that the second part of his "IRC Bots in PHP" series of articles has been posted to the C7Y community site (from php|architect).

The precursor to this article introduced some background and an overview of the design for the Phergie project as an example of the concepts involved in a PHP IRC bot implementation. This article will go further into the topic of plugins including descriptions of those that are commonly needed to make a bot fully functional as well as the commonly needed core features to support plugin development.

In part one he set up some of the foundation code and explained some of the thought behind the structure of the bot. In this part he gets more into the heart of the bot, showing how to define functions for common IRC actions (join/part/ping/etc) and how he made a plugin system to handle custom actions. He also mentions topics like memory usage, data storage methods and some of the "niceties" he included.

tagged with: irc bot tutorial example plugin action memory phergie


Zend Developer Zone:
Action Helpers in Zend Framework
0 comments :: posted Wednesday April 09, 2008 @ 08:53:34
voice your opinion now!

On the Zend Developer Zone, there's a article posted from Matthew Weir O'Phinney spotlighting one of the handy features of the Zend Framework - Action Helpers.

Action Helpers in Zend Framework are often considered a fairly arcane subject, something for experts only. However, they are meant to be an easy way to extend the capabilities of Action Controllers, negating the need to create your own base controller with custom functionality. The aim of this tutorial is to show you how to quickly and easily create and use Action Helpers to your advantage.

He covers some of the basics - setting up a controller to extend Zend_Controller_Action - and assigning helpers to it. He looks hat hooking in events, registering and retrieving the helpers with a Broker and how to create your own custom helper. Their example is a form loader that lest you load the code for a form by submitting its class name.

tagged with: zendframework action helper controller example tutorial

Raphael Stolt's Blog:
Creating Zend Framework snippets for TextMate
0 comments :: posted Thursday February 21, 2008 @ 09:39:00
voice your opinion now!

Raphael Stolt has posted a new entry to his blog that talks about combining two things that many developers out there already use - the Zend Framework and the TextMate editor. He shows hos to make some useful code snippets that can be customized to whatever you might need.

To reduce the typing effort for the most common tasks in creating a Zend Framework based application, which are creating action controllers including their hosted actions and creating new models for accessing the underlying database, I spent some minutes to figure out how to create and add these valuable snippets to the default PHP bundle.

The contents of the examples snippets are included - one to set up a controller, one to add an action to it and an third that will automatically set a table name property.

tagged with: zendframework textmate code snippet example controller action table

Jonathan Snook's Blog:
Easier Static Pages for CakePHP 1.2
0 comments :: posted Tuesday February 05, 2008 @ 08:44:00
voice your opinion now!

Jonathan Snook has posted about a method he's using to make the creation/use of static pages in a CakePHP application (or website) simpler.

Traditionally in a CakePHP application, to do static pages you have two options: use the built-in Pages controller or set up an empty action in a controller.

Feeling that neither of these two options met how he wanted things to work, Jonathan (and Nate Abele) developed a class that extends the error handler in the CakePHP framework to handle "missing" actions and controllers. This means that, if an unknown controller/action combo is called, this script will check in its correct location (in the structure of the site) and try to find it to render it.

tagged with: cakephp framework static page error handle missing controller action


release PHP5 package releases application code database book pecl conference job zend zendframework framework mysql developer cakephp PEAR ajax security

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