In CakePHP, sometimes the need arises to generate a full URL, sending links within an email for example. To generate a full URL use the following code
<?php
echo $this->Html->url(array('controller' => 'something', 'action' => 'something'), true);
?>
To create a clickable link to the full URL, you can use the above code in conjunction with Html->link
like so
<?php
echo $this->Html->link('Your text here', $this->Html->url(
array(
'controller' => 'something',
'action' => 'something'
), true
));
?>