class AppHelper extends Helper { /* build a link using sha1 hashing and parameters */ function buildSecureLinkArgs() { $lview = ClassRegistry::getObject('view'); $hashKey = $lview->loaded['session']->read('SecureGet.hashKey'); if(!$hashKey) $hashKey = CAKE_SESSION_STRING; $args = func_get_args(); $lid = implode('', $args); $args[] = sha1($hashKey.$lid); return implode('/', $args); } }