Authenticating with Zend Framework Made Easy
The Zend Framework provides the ability to use Basic or Digest authentication using an Http file adapter. My friend Jac Wright (jacwright.com) and I have created a set of classes that allow you to perform this same authentication using a database table. The classes are actually really easy to use.
Method Chaining in PHP5
When creating classes in PHP5, I like to implement what is known as “Method Chaining.” It is the practice of chaining methods onto the back of one another like so: $object->methodA()->methodB()->methodC(); When would you use this? It is best practice to use method chaining when you...
Improving Auto-completion in Zend Studio
If you use Zend Studio as your IDE, here is a tip I have found useful. Zend Studio is pretty good at auto completion, but there are times when the property reference is too ambiguous. You can help the IDE with a few simple comments in the right places
PHP Design Patterns: Singleton Pattern Example
The Singleton pattern is generally the first Design Pattern a developer is exposed to, because it solves a common problem and it is easy to understand and implement. Even though Design Patterns are language independent, each language often implements them differently. It is also important to remember...
Hello, world!
No this isn’t the post that came with Wordpress. I figured, since my blog is focused on coding and other related items, what better way to start off this blog than with a “Hello, world!” post? I decided to create this blog rather than continue with the one I have on my previous site...