It is easy to disable both the layout and view in CakePHP by putting the following line in your controller action: $this->autoRender = false; If you want to disable just the layout, use the following line in your controller action: $this->layout = false; And if you only want to disable the view for this action,… Continue reading Disabling Layouts and Views in CakePHP
Month: July 2009
CakePHP Image Helper for Front End Optimization
Going along with one of the many ways to optimize front end performance, I created an image helper for CakePHP that will get the image dimensions and include them as html attributes. <?php /** * This class builds an image tag. The main purpose of this is to get the image dimensions and * include the appropriate… Continue reading CakePHP Image Helper for Front End Optimization
Image Resizing Class
This is a simple script to resize images with PHP. It uses the GD Library functions, and is currently not compatible with ImageMagick. It will automatically determine the image type and use the appropriate functions to resize. <?php/** * This class handles image resizing. It will automatically determine the image * type and use the appropriate php… Continue reading Image Resizing Class