I am using CakePHP and want to create a URL to a controller/view without including the anchor tag.
In other words if I use
$this->Html->link('foo',array('controller'=>'bar','action'=>'display'));
Then the output is a formatted link that can be displayed… but I just want the URL without the HTML around it.
With optional second parameter to make it a full URL including
http://and so on: