About Chris Morrell

I am a Philadelphia web designer and developer who focuses on PHP development and usable design. I am also the Director of IT for the International Association of Certified Home Inspectors.

Please Note: My site fell victim to a Wordpress security flaw a few weeks ago, and I'm just getting everything back to normal. Please bear with me.

I am currently not accepting any new clients.

Other Sites/Clients

Contact Me

If you need to get in touch with me, my name is Chris and my domain name is cmorrell.com. Think about it.

PHP Modeling (in Zend Framework)

Posted by Chris Morrell on November 5th, 2009 in Web Development, Zend Framework (tagged , , , , )

I’ve been thinking a lot about Modeling in a MVC application, particularly in the Zend Framework. Obviously each application is different, and any Model is going to be fairly unique to your application. That’s why ZF doesn’t provide a base Model class. That said, there are some design patterns that a lot of people are using nowadays, and applications could use some base functionality to facilitate those patterns.

Zend Framework’s project lead, Matthew Weier O’Phinney, has a lot of great thoughts about Modeling that I’ve been trying to stick to. In implementing those ideas, I’ve started thinking out some base classes to build my Models on top of. Obviously these classes won’t work for everyone. But they should work for a lot of “typical” web applications.

Continue reading “PHP Modeling (in Zend Framework)” »

7 Comments »

E-Mail Address Obfuscator Class

Posted by Chris Morrell on October 2nd, 2008 in Web Development (tagged , , )

A project I’m working on needs to output text that may have e-mail addresses in it to the Web. Because we don’t want people’s e-mail addresses exposed to spammers, I had to write an obfuscation class to make sure those e-mail addresses are hidden somehow. I haven’t decided what method to hide those addresses with yet (I’m leaning towards Mailhide), but I thought I’d post the base code now. The class is written so that you can extend it to hide the addresses however you like. Here’s the class (PHP 5 only, but would be easy to convert to PHP 4).
Continue reading “E-Mail Address Obfuscator Class” »

No Comments (Respond Now) »

PHP CSS Sprite Generator

Posted by Chris Morrell on August 22nd, 2008 in Web Development (tagged , , )

A couple of days ago Saul Rosenbaum asked for a little help with a PHP utility he was writing.  I took a crack at it, and we ended up with a nice little class that generates CSS sprites from pairs of images. Saul wrote a great little README for it, but the general gist is that it takes a00.gif and a00_over.gif and creates a new a00.gif that has both images vertically stacked within it (it can do this with large batches of images).

We submitted the files to IndyHall Labs if anyone is interested in using them.  If I have time I’ll be adding some new functionality (Saul added a wishlist in the README file, and I’d definitely love to tackle some of those issues).

You can download the files from GitHub: https://github.com/IndyHallLabs/css-sprite-generator/

No Comments (Respond Now) »

@inxilpro

  • Anyone want a free TiVo Series 2 w/ upgrade eligibility and month-to-month service? Its yours if I know you. 1 day ago
  • Just canceled the cable. 1 day ago
  • You know it's spring when the daily Tony Danza sightings start again. 1 day ago
  • More updates...
Copyright © Chris Morrell, Powered by WordPress, Entry RSS Feed / Comment RSS Feed