How do I create external link using cakePHP?

0

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?

    
asked by anonymous 05.12.2014 / 18:39

1 answer

1

Simply replace the array of the second parameter with the desired URL. So:

echo $this->Html->link('YouTube', 'http://www.youtube.com');
    
05.12.2014 / 19:57