 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Zend Developer Zone: Using Zend_Tool to start up your ZF Project
by Chris Cornutt September 04, 2008 @ 12:57:06
The Zend Developer Zone has a new tutorial they posted recently on using the Zend_Tool component to make starting a new Zend Framework application from scratch a much simpler thing.
This tutorial will set you through using Zend_Tool to jump-start development on your next ZF MVC application. Zend_Tool is both RAD tools as well as a framework for exposing your own set of tooling needs to the Zend_Tool user interface. While the areas in which extending Zend_Tool are exhaustive, we will focus merely on obtaining and using the current Zend_Tool toolset.
The tutorial walks you through the installation of the component, how to set it up correctly as a "binary" and how to automatically create a new project with a simple "create project" call. He also points out the ability it has to define some of the basic files for actions of your choosing.
voice your opinion now!
zendtool zendframework automate create project action controller tutorial
C7Y: Reflections on Designing an IRC Bot in PHP, Part 2
by Chris Cornutt April 18, 2008 @ 11:14:56
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.
voice your opinion now!
irc bot tutorial example plugin action memory phergie
Zend Developer Zone: Action Helpers in Zend Framework
by Chris Cornutt April 09, 2008 @ 08:53:34
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.
voice your opinion now!
zendframework action helper controller example tutorial
Raphael Stolt's Blog: Creating Zend Framework snippets for TextMate
by Chris Cornutt February 21, 2008 @ 09:39:00
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.
voice your opinion now!
zendframework textmate code snippet example controller action table
Jonathan Snook's Blog: Easier Static Pages for CakePHP 1.2
by Chris Cornutt February 05, 2008 @ 08:44:00
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.
voice your opinion now!
cakephp framework static page error handle missing controller action
ThinkPHP Blog: Spooky Action at not so much Distance
by Chris Cornutt September 20, 2007 @ 10:27:00
Martin Brotzeller came across an interesting behavior in a script he was recently working on involving two classes and an error that should have been thrown.
Over the weekend i encountered a twist in PHP that really left me wondering. I made a mistake and i thought i should have gotten an error, or at least a warning. I got a completely unexpected behavior instead. According to our PHP Oracle this is just a legacy from PHP 4 though and there was much Discussion whether changing this behavior would break old apps. I think it's a possible source of hard-to-track errors though.
His code creates an object, a and calls the bar() method. Inside bar(), object b is created and the foo() method of b is called. The real oddity comes in when, inside the b->foo() call, $this->mprint() is called but it's the one defined in object a that executes, not in b.
voice your opinion now!
class spooky action php4 object class method class spooky action php4 object class method
Richard Lord's Blog: Managing 404 errors in the Zend Framework
by Chris Cornutt February 16, 2007 @ 20:23:00
In a new entry to his blog today, Richard Lord takes a look at how to gracefully handle 404 errors in a Zend Framework application (via a custom plugin).
Early versions of the Zend Framework had a noRoute action that was called when the correct action couldn't be found. This was a way to deal with some page not found errors. At some point it was dropped - I don't know when or why because I only started using the Zend Framework recently. It's still possible to handle non-existent actions using the __call() method of the controller class. But there's no obvious way to deal with all page not found errors in one place, including instances where the controller doesn't exist.
The framework makes it easy to create actions link to controllers, but there's still a problem when a requested action isn't there. His plugin has a solution to that - it is fired off when the action requested doesn't exist and automatically reroutes it to the "noroute" controller to be handled.
voice your opinion now!
zendframework 404error handle action plugin zendframework 404error handle action plugin
|
Community Events
Don't see your event here? Let us know!
|