Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

Category Archives: zend framework

Testing Outgoing Email with Zend Framework

I was creating a new application with Zend Framework at work the other day and I started using my technique that I described here by adding the original email in my email address using the + sign. However, the current … Continue reading

Posted in testing, zend framework | Tagged , | Leave a comment

Zend Filter Presentation

Thanks to Zend and their community organizers for the opportunity to do a webinar today. I have uploaded my slides from the presentation here: Zend Filter Presentation

Posted in zend framework | Tagged | 1 Comment

Adding Subdomain Routes for all URLs in Zend Framework

All the examples I’ve seen for pulling information from subdomains are from the hostname router directly correlating one subdomain as a value to a single controller/action combo. This means they map username.website.com to something that basically looks internally like website.com/user/profile/var1/username. … Continue reading

Posted in zend framework | Tagged | Leave a comment

Zend Framework: to include or not to include

There are two ways of working with Zend Framework as a library in your project. These are including it in your project repository and using a shared copy on the server (like PEAR). Let us discuss both: Including Zend Framework … Continue reading

Posted in zend framework | Tagged | 4 Comments

Forcing UTF-8 in Zend Framework with PDO

For some reason, I just had the most horrible time making sure that my connection from my Zend Framework code was speaking UTF8 at my database. Here are the key things to remember that I learned: Make sure to have … Continue reading

Posted in zend framework | Tagged | Leave a comment

Useful Firebug Tricks with Zend Framework

Zend Framework has a few hooks with the Firebug browser plugin (with the firePHP add-on). The two that I use are writing logs to the console and profiling of database connections. First thing’s first: Make sure to only enable these … Continue reading

Posted in zend framework | Tagged | Leave a comment

Easy Flash Messenger Messages in Zend Framework

Through reading a few blog posts over the last year and my own trial and error, I’ve developed a way of using the flashMessenger Helper in ZF that works out really well for me. (Note: if anyone knows the original … Continue reading

Posted in zend framework | Tagged | 3 Comments

Zend Framework View Helper for QR Codes

Google Charts has a QR code generation service (here are the details). I decided that I wanted to create my own ZF View Helper to display these on my pages. This version that I am going to show just returns … Continue reading

Posted in zend framework | Tagged | 1 Comment

PHPUnit error with Zend_Session

Running a test, I ran into this error: Zend_Session_Exception: Session must be started before any output has been sent to the browser; output started in /usr/share/php/PHPUnit/Util/Printer.php/173 In order to solve that, I added a line calling ob_start() to my test … Continue reading

Posted in phpunit, zend framework | Tagged , | 3 Comments

Zend Framework: Bootstrap vs Front Controller Plugin

Today I was reviewing some old code I wrote in Zend Framework. One of the things I was doing in the Bootstrap.php file was creating an function called _initViewSettings(). In here I set a bunch of values for the xhtml … Continue reading

Posted in zend framework | Tagged | 4 Comments