Database Profiling with Zend Db Profiler Firebug

I don’t know why I haven’t been using this for ages. But Zend’s DB Profiler is fun. Only to be used in development so you can see what your database is doing and how fast/slow it’s doing it. Enable it in your application’s config.ini (or .xml) [development] db.profiler.enabled = true db.profiler.class   = “Zend_Db_Profiler_Firebug” And as […]

The Quickest Way To Tweet via Zend Framework’s Twitter Service

This is a quick and dirty method.  It assumes a couple of things. You’ve already created your ‘app’ on twitter. You’ve already gotten your personal OAuth tokens from twitter. First you need to setup your tokens; $token = new Zend_Oauth_Token_Access(); $token->setToken(“YOUR_PERSONAL_TOKEN”)       ->setTokenSecret(“YOUR_PERSONAL_SECRET”); Second, you need to setup the Zend_Service_Twitter using your access token as […]

ZF Tip: Don’t use ‘index’ as a module name.

I’ve been using Zend Framework for a while and when I do my own sites things always work as expected.  But a couple of times in the past I’ve had the honor of working on other sites with other people that have lead me to a few ‘wtf?’ issues. The most recent one was as […]

All I Need is REST, Vimeo, Flickr, Zend and More

Here’s my skeleton for my magical REST interface. It’s still missing a lot of method calls for Flickr and Vimeo, but the guts are there and the remaining methods will be done in priority when I need them.  Right now it supports automatic caching and logging via simple options. At some point I’ll probably put […]