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
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
Changing the Default Currency in DigiSHOP
DigiSHOP is not one to let you do things on your own. The code has little comments, and none of them are useful to developers wanting to customize the shopping cart. As always, any customizations you make will void your warranty, so customize at your own risk. If you have already installed your shopping cart,… Continue reading Changing the Default Currency in DigiSHOP
Submitting a Form With jQuery
On a recent project I was working on, I had to have a form submit when the option was changed on a select box. This is a simple task with jQuery. I just had to add a the change() event listener to the appropriate select boxes, and then submit the form. It didn’t work though.… Continue reading Submitting a Form With jQuery
Kona on the Indo Board
My dog, Kona, used to be terrified of my Indo Board. He wouldn’t even go near it when it was stationary. But, a few treats and he rides on it with me now.
SVN – Creating a New Repository
Creating a new repository with Subversion is simple. Just run the following command on your svn server: svnadmin create /path/to/svn/example.com This will create a new, blank repository with the name “example.com”. Now you will want to do one of two things, import an existing project, or setup the initial directory structure for your new repository.… Continue reading SVN – Creating a New Repository
SVN Copy – Creating a Branch or Tag
Tagging and branching with svn are as simple as using the copy command. For this tutorial, I will assume that your repository has the following structure: /path/to/repository/branches /path/to/repository/tags /path/to/repository/trunk To create a tag of the trunk, run the following command: svn copy http://svn.example.com/path/to/repository/trunk http://svn.example.com/path/to/repository/tags/snapshot-of-trunk To create a tag of your current working copy (assuming you… Continue reading SVN Copy – Creating a Branch or Tag
Book Review: Beginning CakePHP From Novice to Professional
I have been getting into CakePHP development more and more recently. With all the CakePHP books that have come out in the past year, I was hoping I could find one that would be a pretty comprehensive guide to CakePHP. I was looking for something that would basically tell me everything that Cake’s online manual… Continue reading Book Review: Beginning CakePHP From Novice to Professional
Why the Wii Fit Works (and Why It Doesn’t)
In case you don’t know, the Wii Fit is an exercise game for the Wii. There is much debate as to whether or not it is a viable source for exercise. Today, I will explain why both sides are correct. Why It Works: Allows you to set goals for BMI and body weight, and track… Continue reading Why the Wii Fit Works (and Why It Doesn’t)