PHP Developer - February 28th, 2007
On the Inside Open Source blog today, there’s a “quick hit” post from Jason Gilmore for WordPress users out there using the WP-Cache and being frustrated by it’s functionality during the development process.
I’m using WordPress to build out a blog for a new endeavor, and couldn’t figure out why I had to go through a rather unwieldy refresh process (disabling a template and then enabling it anew) every time I changed it from within the WordPress administration interface.
It was the WP-Caching mechanism that WordPress comes with that was causing the issue, so he tracked down where to disable it for the duration of the development time. (Options -> WP-Cache -> Disable It).
Continue Reading ·
PHP Developer - February 27th, 2007
DevShed is taking a look at another design pattern today in part one of their look at the Strategy Pattern:
That’s exactly the case with the subject of this article, the strategy pattern. To put things more clearly, I’m sure that you always validate adequately all the forms included in your web sites. First off, you create a few validation functions (or classes), then use these functions to check the validity of the data supplied by users, and finally determine the course of action to be taken accordingly.
To make the concept clearer, they Create a simple example - a file handling class that can read and write data to the file of the developer’s choosing. This base class is then used inside their StrategySelector class to make saving both HTML and XML data as simple as a basic string.
Continue Reading ·
PHP Developer - February 27th, 2007
Frank and Stehpan has posted two more items in their “PHP6 wishlist” series” today - both mentioning annotations.
In Stephan’s post:
Porting JavaDoc comments to PHP was one of the best things, that ever happened to to PHP4. But like in Java 4, the DocBlocks in PHP evolved from plain documentation to a feature that adds meta information to classes, methods, properties and variables. IDEs, like Zend Studio, use the @var tag to enable type hinting for method return values, which would not possible without the DocBlock, as PHP is a dynamic languages.
And from Frank:
In part three of his wishlist for PHP 6 Stephan wrote that he would like to see annotations built into PHP 6 directly. I disagree with him about that. Annotations can be done in userland, without any problems. He already gave some examples of projects that accomplished this task. But if you look at them you see that every project has a different solution on how to implement annotations for PHP which leads to the problem that if you use different projects in your own application you have to handle all their ways of treating annotations. Annoying, isn’t it?
Continue Reading ·
Dev Shed - February 27th, 2007
The strategy design pattern can be very useful in the context of form validation. This article the first of two parts will introduce you to the strategy pattern and give you some idea of how you can use it in your own PHP applications….
Refurbished and Used Networking Equipment Network Liquidators sells refurbished and used networking equipment for up to 95% off list, with a 1 year warranty. We buy and sell top brands like Cisco, Extreme, Foundry, and more. Call us for best pricing.
Continue Reading ·