Archive for August, 2010

Finding syntax errors in your PHP Project files

24 August, 2010

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 {}

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

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

17 August, 2010

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 […]

Tags: ,
Posted in Development, PHP No Comments »

Testing Zend Framework controllers in isolation

11 August, 2010

What I do is I have my con­trollers fetch all their depen­den­cies from the boot­strap and/or front con­troller. The most com­mon exam­ple is to pull the db resource from the bootstrap:

// in con­troller
$db = $this->getInvokeArg(‘bootstrap’)->getResource(‘db’);

But I also take it a step fur­ther. For exam­ple, if I’m using data map­pers, I have the action con­troller check […]

Tags: ,
Posted in Development, Unit Testing, Zend Framework No Comments »

Zend Framework 2.0 (2.0.0dev1)

7 August, 2010

Yes­ter­day, the Zend Frame­work team tagged the first devel­op­ment mile­stone of Zend Frame­work 2.0 (2.0.0dev1). It is imme­di­ately down­load­able from the Zend Frame­work servers:

* Zip pack­age:
http://framework.zend.com/releases/ZendFramework-2.0.0dev1/ZendFramework-2.0.0dev1.zip

* tar.gz pack­age:
http://framework.zend.com/releases/ZendFramework-2.0.0dev1/ZendFramework-2.0.0dev1.tar.gz

NOTE! This release is not con­sid­ered of pro­duc­tion qual­ity, and is released solely to pro­vide a devel­op­ment snap­shot for pur­poses of test­ing and research. […]

Tags:
Posted in Development, Zend Framework No Comments »

Autocomplete Control with ZendX_JQuery

6 August, 2010

Jon Leben­sold posts; In the last video, I dis­cussed ZendX_JQuery inte­gra­tion. Now we’re going to take it a step fur­ther by devel­op­ing our own jQuery auto­com­plete con­trol, using a coun­try list, PHP 5.3 and anony­mous func­tions.
Grab a copy of the project or browse the repos­i­tory.
via Zendcasts.

Tags: , ,
Posted in Ajax, Development, Videos, Zend Framework No Comments »

Working with ZendX_JQuery

6 August, 2010

Jon Leben­sold posts; I’ve received a lot of feed­back about jQuery inte­gra­tion in the Zend Frame­work. This lit­tle video will show you how you can quickly inte­grate jQuery and jQuery UI into your Zend Frame­work project.
Grab a copy of the project or browse the repos­i­tory.
via  Zendcasts.

Tags: , ,
Posted in Ajax, Development, Videos, Zend Framework No Comments »

A contents index for Zend Framework manual pages

6 August, 2010

The good old Zend Frame­work man­ual pages do suf­fer from being some­what lengthy. I’ve thought they could do with an index to make nav­i­ga­tion eas­ier on those oh-so-long pages. So I wrote a quick JavaScript book­marklet to do just that.
via  simon r jones.

Tags:
Posted in Documentation, Zend Framework No Comments »

Get Adobe Flash player