Archive for December 27th, 2007

The Bakery: Eight New Items (Components, Tutorials & Helpers)

The Bakery (the CakePHP repository) has posted a few new things recently with topics ranging from Javascript helpers to new behaviors. Here’s the latest:

As always, you can find these and lots more great CakePHP-related content over on The Bakery.

Continue Reading · Add comment

Stubbles Blog: vfsStream 0.1.0 Released

On the Stubbles blog, Frank Kleine has posted about the release of a new wrapper class he’s developed to go around a virtual file system.

Some minutes ago I released the first version of vfsStream. vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.

The idea for the class came about when he thought about the use of real databases vs test databases and applied it to file systems. You can grab the latest version from their trac website as well as get more information about known issues and a brief example of its use.

Continue Reading · Add comment

Michael Kimsal’s Blog: Continued sad state of PHP development

Michael Kimsal has posted some more thoughts on what he calls the “sad state of PHP development” pointing out some of the practices of the PHP group surrounding the development of the language.

Every few months there’s a release, whether large or small, which introduces new features and bug fixes. However, with every release also comes fears of tiny, sometimes undocumented, changes that break existing code, and often for no solid reason other than someone with commit access decided they liked the ‘new’ way better than the old way.

He points out a specific example, get_object_vars and how its return values were changed in an earlier release as well as the update to glob made recently to change its return types.

In his opinion:

No changes should be made to the PHP core without an issue being opened, either in the ‘bug’ tracker or some other issues tracker.

Be sure to check out the comments for other great opinions on the topic.

Continue Reading · Add comment

Zend Developer Zone: Tracing PHP Applications with xdebug

Continuing on from the previous part of his series, Stefan Priebsch has posted part two of his look at using XDebug over at the Zend Developer Zone.

Welcome to the second installment of our five-part series of articles on xdebug, the PHP developer’s swiss army knife extension. The installation of xdebug and its basic features were covered last week. This week, we will explore the tracing feature of xdebug.

He details what tracing is and how it’s helpful (no more repetitive var_dumps!) in finding issues in your code. He shows how to set up a trace log, add the code to your application to pass debugging information off to the log and how to add additional information to the log to make narrowing down the error even easier.

Continue Reading · Add comment

Jan Lehnardt’s Blog: Using the Zend Framework with Code Igniter (an alternative)

On his blog Jan Lehnardt has posted an alternative method for using the Code Igniter framework together with the Zend Framework with only the parts you need.

I want to use Code Igniter for some applications and I want to use some bits of the Zend Framework inside my Code Igniter classes. There is a tutorial explaining how to set it up. But there is a problem.

He reverses the method the other tutorial uses and chooses to go with Code Igniter for the application logic side of things, making use of the helper and autoload functionality of CodeIgniter to pull things together. He includes code to make his method clear.

Continue Reading · Add comment