How about you just extend the html helper and add your own link function-
something like:
function sslLink($title, $url = null, $options = array(),
$confirmMessage = false){
if(!$url){
$url = $title;
}
//manually set ssl domain, in case it's different than current
domain
$sslDomain = 'https://yourdomain.com';
//Check to make sure passed url isn't already a valid url
if(is_array($url) || !strstr($url, 'http')){
$url = $sslDomain . Router::url($url);
}
return $this->Html->link($title, $url, $options, $confirmMessage);
}
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php