Take the 2-minute tour ×  I dislike the Html->link() method. I
appreciate it, but it uglies up the code and I don't believe
that something so basic should require a method. However, in my
project, I find I must use it if I want to have proper URLs.
I'll accept that, but I want to know that I have to before
continuing making links in this (large) project.  I've attempted
to find some ways to get the cakeURL in a view. Nothing worked
out.  My goal is to go from this:  <?=$this->Html->link('quality
view', array('controller' => 'quals', 'action' => 'show')); ?>
To this:  <a href="<?=URL.'quals/show'?>">  But I cannot write
or find a way to get such a constant working if I change the
page's URL. (even something such as visiting /quals/ and /quals
will show different URLs)  share|improve this question add
comment  2 Answers  up vote 2 down vote accepted  I also dislike
the link method, I find it overkill for adding attributes like
class, id and target="_blank" to my links.  I do this for links:
<a class="myclass"