Archive for March, 2011

Create daemons in PHP

29 March, 2011

 
Kevin van Zon­n­eveld wrote a life sav­ing arti­cle that saved me quite a bit of time; Every­one knows PHP can be used to cre­ate web­sites. But it can also be used to cre­ate desk­top appli­ca­tions and com­man­d­line tools. And now with a class called System_Daemon, you can even cre­ate dae­mons using noth­ing but PHP. And […]

Tags: , ,
Posted in Development, PHP 1 Comment »

A Zend Framwork compound form element for dates

21 March, 2011

Rob Allen writes; A while ago I needed to ask a user for their date of birth on a Zend_Form. The design showed three sep­a­rate select ele­ments to do this:
Screen shot of a 3 select boxes for a date on a form
A lit­tle bit of googling found this site http://codecaine.co.za/posts/compound-elements-with-zend-form which has not unfor­tu­nately dis­ap­peared, so the […]

Tags: ,
Posted in Classes, Development, Zend Framework No Comments »

Usage of the Conditional Ternary operator to reduce brace and newline waste when processing optional method parameters

14 March, 2011

ralph­schindler writes; Usage of the Con­di­tional Ternary oper­a­tor to reduce brace and new­line waste when pro­cess­ing optional method parameters

< ?php
class Coor­di­nate
{
pro­tected $x;
pro­tected $y;
pub­lic func­tion __construct($x = null, $y = null)
{
(empty($x)) ?: […]

Tags: ,
Posted in Development, PHP No Comments »

Zend Studio & Eclipse Code Templates and Snippets for PHP

2 March, 2011

Saša Sta­menković writes; I know many of us have strug­gled with cod­ing PHP using var­i­ous text edi­tors and IDE-s. Sooner or later, we pick our favourite weapon of choice and use it for every day devel­op­ment. My weapon of choice is Eclipse PDT (Helios) and today I will talk about code tem­plates.
Just to make it […]

Tags: , , ,
Posted in Development, Zend Studio 2 Comments »

ExtJs, ExtDesigner and Zend Framework

2 March, 2011

Nils-Fredrik G. Kaland writes; Let’s say you are work­ing on the user inter­face in Ext Designer / Sen­cha Ext Js, and after a while you find out you have ended up with a great amount of data stores. You also need to han­dle lots of Ajax requests and all the server side coding […]

Tags: , , ,
Posted in Development, Zend Framework 2 Comments »

Get Adobe Flash player