AssetPackager for CakePHP

By Brad Daily aka "bdaily"
Multiple javascript and CSS files simplify things in development, but in production they can begin to adversely affect your page loading times. With AssetPackager for CakePHP, we can have the best of both worlds by allowing multiple files during development and combining and compressing those files for deployment.

Comments 490

CakePHP team comments Author comments

Comment

1 change if using bleeding edge 1.2


Brad

I've used this successfully for quite some time - works great for me. I've started qualifying the newer pre Beta (6025) cake and asset_packager now flags up a warning

Notice (8): Use of undefined constant DEBUG - assumed 'DEBUG' [APP/vendors/asset_packager/asset_helper.php, line 53]

Users on the bleeding edge will need to update the asset packager files with a simple fix....


39c39
< if (DEBUG == 0) {
---
> if (Configure::read('debug') == 0) {
53c53
< if (DEBUG == 0) {
---
> if (Configure::read('debug') == 0) {
posted Mon, Nov 19th 2007, 11:27 by Howard Glynn

Login to Submit a Comment