CakePHP Asset Helper Updated

Posted by Matt on Mon, Dec 10 2007

I've been using this helper on some projects lately and ran into a few issues, plus there have been some good comments, so I figured it could use a few tweaks. The new version is available for download on the Sandbox page.

Change Log

  • Removed deprecated DEBUG, using Configure::read('debug') instead.
  • Strip "." from file names. This seemed to be causing problems with IE7.
  • Option to MD5 outputted file name.
  • Debug flag.
  • Packed files now have seperator lines.
  • Improved .htaccess included. Based on the comment by Marcin Domanski on the CakePHP Bakery.
Posted in Sandbox

2 Comments

Marc said on Dec 10, 2007
Thanks for the update. I manually added mod deflate in apache but I realize people don't always have that level of control - so the .htaccess is a great update.

I just started using your asset packer in my projects and I love what it does. Simple and effective.
Marc said on Dec 26, 2007
I built Asset Mapper on top of your Asset Packer. It allows you to control your CSS and JavaScript includes site-wide in one "map" file.

http://marcgrabanski.com/code/asset-mapper/

Add new comment