My Blog
contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!
Author Archives: Aaron
Read Something Else
Many years ago, a business mentor of mine told me that I should “read something else.” I didn’t know what he meant so I asked for more. He said I should go find some biographies, some history books, etc, and … Continue reading
Don’t Always Lead: Sometimes Just Be Great
What is the measurement of a good career? Promotion? Raises? Running a project / leading a team? Usually all of this. However, the most traditional measurement of success in a career is moving upward. Time to run a department, time … Continue reading
Zend Framework Use Filter with Paginator
By default, when using the Zend Paginator, the result set will come back as an array. If you are using a paginator associated with a db result set, and that db has a class defined for its row, it will … Continue reading
When writing unit tests, test against absolutes
So, while chatting with one of the developers on my team, we started talking about testing an XML document creation process he had been working on. He wrote a unit test and said “see, here is my class which generates … Continue reading
How to Add PHPUnit to your Include Path (for autocompletion) in Eclipse PDT
By default, PHPUnit is not part of the default installation of Eclipse PDT. (Zend Studio is another beast, however…) It’s easy to add the PHPUnit install to your include path however. Make sure that the PHPUnit install is the same … Continue reading
Creating a custom Zend Framework Body Script helper
It drives me nuts that the best practices with javascript that is not required for the initial rendering of your application is to be placed at the bottom of the document, yet frameworks (like Zend Framework) do not support that … Continue reading
Split Read/Write Connections in Zend Framework Database on the Application Level
I’m no sys admin, so I can’t be sure, but I’ve seen lots of issues with using things like MySQL Proxy to fully separate the write and read queries in an application. Maybe it works, I don’t know… but I … Continue reading
Zend Framework Static Router URLs Not Found in Zend Navigation
For a CMS I’ve been working on, there are a number of custom routes that are added statically in a loop. These point to specific ID’s of articles on on the default module’s page viewing controller/action. Sometimes these routes need … Continue reading
How to Quickly Mask a Credit Card Number
So, often I have to show a masked credit card on the screen. However, I really want to go the extra mile and show the user a secure, fully masked credit card number that still reflects their original card. For … Continue reading
Running PHPUnit on Remote System from Command Line
If I need to run PHPUnit on a remote system against a code suite, I will write a simple shell script like the following to do it for me. (Bonus points, you can even include this as an External Tool … Continue reading
