Archive for January 22nd, 2008

Community News: Limb3 PHP Framework

The Limb framework project (up to its limb3-2007.4 release as of this post) is an Open Source PHP framework that looks to help developers create applications quickly and simply.

We are committed proponents of the beautiful and easy-to-maintain code that simply works. That is why we develop and constantly refactor the Limb code in a test driven manner using the best agile development practices.

There’s different ways to get the latest version of the framework - either from their PEAR channel or from a direct download of the entire package. Currently, the framework is made up of a grouping of components that do things like input filtering, make MVC setups simple, allow for active record implementations and an included tests runner.

You can get complete information on Limb-Project.com (including some documentation, information about the Subversion repository and links to community resources).

Continue Reading · Add comment

Phil Thompson’s Blog: 7 PHP functions that saved my life

On his blog, Phil Thompson lists seven PHP functions that “saved his life” when developing his apps:

From time to time, I’ve struggled with minor pieces of coding for what seems like an age and then I’ve discovered PHP has a ready-made function whose express purpose seems to be to fix my exact problem. Today, I name and honour those PHP functions which saved my life, my career and my sanity.

Functions that made the cut include:

He has his own reasons for each - all of them being handy little functions that fill a specific niche in PHP’s vast array of abilities.

Continue Reading · Add comment

ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 9

ProDevTips.com has posted part nine of their long-running series about using the Zend Framework (and Smarty) to create a CMS/Community website.

This piece covers creating a proper folder structure so that we can have a skin system. I’ve also created a folder for the admin section which is fully contained with it’s own controllers folder and so on. Another unrelated change that has happened since the last part is sub menu logic which we will also take a look at.

They make updates to the bootstrap file to introduce another controller directory and, inside of that, create the Administrator controller and integrate it with a Smarty template to show different menu items if an admin user is logged in.

Continue Reading · Add comment

Brian Moon’s Blog: Responsible use of the $_REQUEST variable

In one of his recent blog entries, Brian Moon takes a look at what he considers the “proper use” of the PHP superglobal $_REQUEST (as brought on by a thread on the PHP internals mailing list.

I have seen more than one person make the following logic mistake: I may get data via GET, I may get data via POST - Ah, I should use $_REQUEST as it will catch both.

Brian points out the error - cookies aren’t in $_REQUEST so improper handling of those values could lead to cookie data overwriting GET/POST data from $_REQUEST. Several of the comments on the post also warn against improper handling of the values, noting that doing so could lead to holes open for attacks (like session fixation).

Continue Reading · Add comment

Michael Kimsal’s Blog: Grails for PHP developers series

Michael Kimsal has come up with the start of a series to introduce PHP developers to the world of Grails (the Java framework).

The comparisons I plan to make will be mostly to PHP, cause that’s what I’m most familiar with, though there may be some other comparisons from time to time. This is a work in progress, but I’d be very interested in feedback from anyone out there interested in this aea - Grails, Groovy, PHP, why another language/platform/framework, etc.

The first two installments have been posted - part one and part two - with an introduction to what Grails is and a brief dip into some “Hello world” sort of code to give you an idea of the structure.

Continue Reading · Add comment