Archive for May 15th, 2007

The Bakery: New Articles/Tutorials - NiceHead, Field Validation and Plugin Paths

The Bakery has three new items posted today - a view helper for CSS/JS file inclusion, field validation, and rewriting a plugin’s paths:

Check out these and more great CakePHP-related tutorials on The Bakery!

Continue Reading · Add comment

Tiffany Brown’s Blog: Review: WorkSpace

On her blog, Tiffany Brown has a review of an online editing resource she came across that can help you write code and work with remote files via a web interface - WorkSpace (including HTML, JavaScript, CSS, PHP, SQL, Java, and Perl documents).

WorkSpace - which currently is currently in limited beta testing - is an online text editing environment with an eye towards web development. You can create documents and save them in your hosted sandbox, or directly to your server via FTP.

She talks about her experiences with it - both the good and the bad. She liked the simplicity of it all but thought it lacked a few of the features it needed. She also mentions the lack of version control in the application.

I do like the idea behind WorkSpace. […] The downside is that you’re trusting a company with all of your web site data. I’m not sure the slight gain in the ability to work remotely is worth the trade-off of giving WorkSpace server access.

Continue Reading · Add comment

LivePipe Blog: What PHP6 Actually Needs

On the LivePipe blog, there’s a whishlist that Ryan has posted for some of the things he’d like to see in PHP6.

His list consists of:

  • Closures
  • { } is the new array()
  • Parameter Collection in Functions
  • Late Static Binding
  • Backwards Compatibility

Each is explained, some with code to illustrate.

Continue Reading · Add comment

Nick Halstead’s Blog: Bad code, bad data flow, good idea?

While developing a new application in a framework, Nick Halstead came across an “oops” point where he realized that the part of the application he was working on could have been coded better. In this instance, he found a spot where he needed to pass data backwards and forwards through the app without loosing “the flow”. His solution? Singletons!

One of these situations occurs when you suddenly that find you don’t have access to data you want, or you can’t pass back (or forward) data as part of the common flow of your application. […] The solution was to create a singleton class which uses references to bind a name to a already defined variable.

In his example, he illustrates (and explains) how to use a class he developed (varmap) to handle the assignment/removal/etc of the data to the common Singleton object.

Continue Reading · Add comment

IBM developerWorks: Calling eBay using the Service Component Architecture

From the phpblog on the IBM developerWorks website today, there’s a quick new tutorial focusing on the use of the Service Component Architecture functionality in PHP to interface with the web service API that eBay offers.

I’ve just made the first code drop to support calling eBay Web services using the Service Component Architecture. Anyone who’s tried calling the eBay soap APIs will know there are quite a few hoops to jump through to get it working. […] The SCA eBay soap support hides this complexity by allowing you to specify the information as configuration parameters and then it makes sure the right things are placed in the header or the URL.

A code example is included that makes a connection to the web service, calls the GetSearchResults action for the query of “ipod” and, upon getting the results back, loops through them to display them to the page.

Continue Reading · Add comment