Development

UTF-8 fields in MySQL">About using UTF-8 fields in MySQL

Posted by on 20 December, 2010 at 11:01 am

Joshua Thi­jssen writes; I some­times hear: “make every­thing utf-8 in your data­base, and all will be fine”. This so-called advice could not be fur­ther from the truth. Indeed, it will take care of inter­na­tion­al­iza­tion and code-page prob­lems when you use UTF-8, but it comes with a price, which may be too high for you to […]

Handling exceptions in a Front Controller plugin – Rob Allen’s DevNotes

Posted by on 20 December, 2010 at 10:03 am

Rob Allen wites in his DevNotes; If you have a Zend Frame­work Front Con­troller plu­gin which throws an excep­tion, then the action is still exe­cuted and then the error action is then called, so that the dis­played out­put shows two actions ren­dered, with two lay­outs also ren­dered. This is almost cer­tainly not […]

Local config files and Zend_Application

Posted by on 29 November, 2010 at 11:57 am

Rob Allen writes; A friend of mine recently had a require­ment where she wanted to have two con­fig files loaded into Zend_Application, so that the spe­cific set­tings for the server were not stored in the ver­sion con­trol sys­tem.
Hence she has two con­fig files: application.ini and local.ini where local.ini is dif­fer­ent on each server.
The eas­i­est way […]

Unit Testing Action Helpers

Posted by on 16 November, 2010 at 9:33 pm

A look at how action helpers func­tion and effec­tive ways of unit test­ing them.
via Zendcasts.

FINAL Released">Zend Framework 1.11.0 FINAL Released

Posted by on 2 November, 2010 at 8:21 pm

The Zend Frame­work team is pleased to announce the imme­di­ate avail­abil­ity of the gen­eral access release of Zend Frame­work 1.11.0.
This release is the cul­mi­na­tion of sev­eral months of effort by con­trib­u­tors and Zend Frame­work part­ners, and offers sev­eral key new fea­tures, includ­ing sup­port for mobile devices and the first sta­ble release of the Sim­ple­Cloud API.
You may […]

Zend SimpleCloud and Azure

Posted by on 22 October, 2010 at 3:46 pm

Josh Holmes writes a infor­ma­tive arti­cle on Sim­ple­Cloud here;
I’ve been play­ing with Zend’s Sim­ple­Cloud API for the web­cast that I’m doing with Zend today. I started with the Zend Frame­work Quick­start tuto­r­ial but changed out the back­end to hit the Azure Tables and such (well kinda – I used Zend Stu­dio 8 Beta 2 and didn’t […]

0BETA1 Released">Zend Framework 1.11.0BETA1 Released

Posted by on 14 October, 2010 at 10:42 pm

The Zend Frame­work team is pleased to announce the imme­di­ate avail­abil­ity of the first beta release of Zend Frame­work 1.11.0. This release is the cul­mi­na­tion of sev­eral months of effort by con­trib­u­tors and Zend Frame­work part­ners, and offers sev­eral key new fea­tures, includ­ing sup­port for mobile devices and the first sta­ble release of the Sim­ple­Cloud API.
You […]

Using Action Helpers To Implement Re-Usable Widgets

Posted by on 4 October, 2010 at 4:57 pm

Using Action Helpers To Imple­ment Re-Usable Widgets

I had a twitter/IRC exchange yes­ter­day with Andries Seutens and Nick Bel­homme regard­ing appli­ca­tions that include wid­gets within their lay­out. Dur­ing the exchange, I told Andriess not to use the action() view helper, and both Andriess and Nick then asked how to imple­ment wid­gets if they shouldn’t […]

High Scalability — More Troubles with Caching

Posted by on 1 October, 2010 at 6:41 pm

As a tasty pair­ing with Face­book And Site Fail­ures Caused By Com­plex, Weakly Inter­act­ing, Lay­ered Sys­tems, is another excel­lent tale of caching gone wrong by Peter Zait­sev, in an excit­ing twin billing: Cache Miss Storm and More on dan­gers of the caches. This is fas­ci­nat­ing case where the cause turned out to be soft­ware upgrade […]

WHAT with PHP? Chapter 10">You want to do WHAT with PHP? Chapter 10

Posted by on 29 September, 2010 at 7:05 pm

With the book out and released I now reach the final chap­ter excerpt that I will have. As I said in one of my pre­vi­ous chap­ter excerpts, I did not write this book to cover a wide range of top­ics. I wrote it to cover a nar­row range of top­ics, more fully. […]

WHAT with PHP? Chapter 9">You want to do WHAT with PHP? Chapter 9

Posted by on 27 September, 2010 at 11:45 pm

e_schrade writes; There is a bunch I could say to intro­duce this chap­ter.  How­ever, I think that by read­ing the first few para­graphs you will know what I’m talk­ing about.  For those who are expe­ri­enced devel­op­ers some of these items might seem a lit­tle basic, but there are reams and reams of […]

Zend_Log with multiple writers

Posted by on 12 September, 2010 at 1:22 pm

eschrader writes; So I was sit­ting here think­ing to myself “This is Fri­day and I’m not get­ting much of any­thing done.  Maybe I should write another Fri­day Frame­work High­light.”  I fig­ured that it was a good idea so I pon­dered what I should write.  I came up blank and so I asked […]

Zend_Server Class

Posted by on 3 September, 2010 at 7:27 pm

e_schrade wrote a neat way of doing things in the ser­vice layer; Let’s take a quick look at some­thing that’s kind of neat in Zend Frame­work. I’ve been doing some work with Adobe on some arti­cles and one of them was on work­ing with mobile clients with Flash. Well, me being the masochist […]

PHP Project files">Finding syntax errors in your PHP Project files

Posted by on 24 August, 2010 at 2:34 pm

Till posted this lit­tle snip­pet;
It’s so use­ful I just had to share it

find . \( –name “*.php” –o –name “*.phtml” \) –exec php –l {} \;

Just go to your project direc­tory and fire it off, it will help you find those pesky unmatched {}

Search each class for function names that match except for the underscore prefix

Posted by on 17 August, 2010 at 12:16 am

Bill Kar­win posts a use­ful lit­tle snip­pet that will list and search each class for func­tion names that match except for the under­score pre­fix, pri­vate / pro­tected functions.

< ?php
/**
* Find meth­ods that dif­fer only by the under­score pre­fix.
* by Bill Kar­win August 2010
*
* I release this code […]

Get Adobe Flash player