Galleriffic IE 7 Fix: Images not showing

I had an issue where Galleriffic was not displaying the current image correctly. Searching around, it seems like others have had this issue as well.

The fix for me was simple, I just added the following to my CSS and it worked:

div.slideshow img
    position: relative;

CakePHP Use validation rule outside model

Recently I wanted to incorporate CakePHP’s URL validator inside my own validation rule. To do this, I used App::Import. This allows you to use CakePHP’s validation rules inside your own validation rule, or wherever you want.

App::import('Core', 'Validation');
$isStrictUrl = Validation::url($value, true);