A link of the type below is used to link to a page of our own system:
<?php echo $this->Html->link('Listar todas as tarefas', array('action'=>'index')); ?>
What if I want to link to YouTube for example or another site?
A link of the type below is used to link to a page of our own system:
<?php echo $this->Html->link('Listar todas as tarefas', array('action'=>'index')); ?>
What if I want to link to YouTube for example or another site?
Simply replace the array
of the second parameter with the desired URL. So:
echo $this->Html->link('YouTube', 'http://www.youtube.com');