Archive for February 26th, 2007
Dev Shed - February 26th, 2007
Among the considerable variety of structural design patterns that can be implemented with PHP 4 and PHP 5 by the way there s one in particular that deserves special attention. It s easy to apply in the context of a given web application and it offers remarkable functionality when it comes to preventing the unnecessary instantiation of different classes. This two-part series covers that pattern….
Rackspace Customized Managed Hosting Solutions Windows & Linux certified, Zero-Downtime Network, 24/7/365 Fanatical Support. Click to chat.
Continue Reading ·
PHP Developer - February 26th, 2007
DevShed charges right ahead with its emphasis on design patterns in PHP with a new start of a new series today that looks at the Flyweight pattern.
Among the considerable variety of structural design patterns that can be implemented with PHP 4 (and PHP 5, by the way), there’s one in particular that deserves special attention. It’s easy to apply in the context of a given web application, and it offers remarkable functionality when it comes to preventing the unnecessary instantiation of different classes. This two-part series covers that pattern.
As they explain, the Flyweight pattern helps to keep your code light and simple by preventing the instantiation of unneeded objects and resources. They go with a HTML form example, illustrating how to prevent a submit button or an input button’s class to be reinitialized every time a new form field is needed.
Continue Reading ·
PHP Developer - February 26th, 2007
On his blog today, Felix Geisendorfer has a release announcement posted for the latest version of Drake, and Drulap-CakePHP hybrid, has been released (version 1.0.1b).
This is just a quick announcement that a completely new Drake has has been released by Mariano Iglesias. For those of you who don’t remember: I used to have some fun with integrating CakePHP with other PHP applications around such as drupal which in term created a project called Drake. I only released a couple versions and by looking at Mariano documentation for Drakes none of them were as easy to set up.
You can more details on the project from its homepage on Sypad.com as well as the full documentation and downloads.
Continue Reading ·
PHP Developer - February 26th, 2007
Always looking forward to the future of PHPUnit, Sebastian Bergmann has started gathering some ideas for future additions to the project:
I started to collect ideas for features that I would like to see in PHPUnit but currently lack the time to implement myself.
The two listed in this post are:
- Mutation testing - an approach where the testing tool makes some change to the tested code, runs the tests, and if the tests pass displays a message saying what it changed
- Web Interface for Test Result Database - output viewer for the database logging PHPUnit is now capable of.
Looking to help out? Let him know!
Continue Reading ·
PHP Developer - February 26th, 2007
Manfred Weber has posted part two today of his look at sharing more complex objects between PHP and Flash. This time, he focuses on implementing the classes he’d created before.
This is part 2 of my SOAP series. In the 1. part I started with a basic example of creating a simple PHP Soap Server with the PEAR package Services_Webservice. In this part I will share complex objects between PHP and Flash.
Using the Bookstore application he created before, he shows how to call the web service from Flash to grab the information and import the data where a sendAndLoad function call in ActionScript can do the rest.
Continue Reading ·