title: cakephp $this->html->link not changing location
body: <p>I am using cakephp 2.2</p>
  
  <p>I have routers configured to have pretty urls </p>
  
  <p>html link not changing stuck on first result </p>
  
  <p>the below code works and does what I want, but I am trying to use cakes way of generating links</p>
  
  <pre><code>&lt;td&gt;&lt;a href="/&lt;?php echo $examples['somemodel']['slug'];?&gt;"&gt;&lt;?php echo $examples['somemodel'][slug'];?&gt; &lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>when I do this the url name is different
  but the hyper link doesn't change</p>
  
  <pre><code>&lt;?php echo 
  $this-&gt;Html-&gt;link($examples['model']['somename'], '/controllername/slug/' + $examples['model']['slug']);
  ?&gt;
  </code></pre>
  
  <p>my results are </p>
  
  <pre><code>&lt;a href =”/example1”&gt;example1 &lt;/a&gt; 
  &lt;a href =”/example1 ”&gt;example2 &lt;/a&gt; 
  &lt;a href =”/example1 ”&gt;example3 &lt;/a&gt; 
  &lt;a href =”/example1”&gt;example4 &lt;/a&gt; 
  </code></pre>
  
  <p>instead of what I want it to do</p>
  
  <pre><code>&lt;a href =”/example1”&gt;example1 &lt;/a&gt; 
  &lt;a href =”/example2”&gt;example2 &lt;/a&gt; 
  &lt;a href =”/example3”&gt;example3 &lt;/a&gt; 
  </code></pre>
  
  <p>as you can see the url name is different
  but the hyper link doesn't change</p>
  
  <p>//router.php
      Router::connect(</p>
  
  <pre><code>"/example/:slug",
  array('controller' =&gt; 'differentname', 'action' =&gt; 'view'),
         array( 
  
              'name'=&gt;'[-A-Z0-9]+', 
  
             'pass' =&gt; array('slug')
  
  
  
            ) 
  
          );
  
  Router::connectNamed(
  array('/example/' =&gt; array('action' =&gt; 'view', 'controller' =&gt; 'different')),
  array('default' =&gt; true, 'greedy' =&gt; true)
  );      
  
  
  
  //'view.ctp
  
    &lt;?php
  foreach ($example as $examples): ?&gt;
  
   &lt;?php echo 
   $this-&gt;Html-&gt;link($examples['model']['somename'], '/controllername/slug/' +     $examples['model']['slug']);
   ?&gt;
  </code></pre>
  
  <p>results 
       example1  
       example2  
       example3  
       example4  </p>
  
  <p>instead of </p>
  
  <pre><code>   &lt;a href =”/example1”&gt;example1 &lt;/a&gt; 
   &lt;a href =”/example2”&gt;example2 &lt;/a&gt; 
  &lt;a href =”/example3”&gt;example3 &lt;/a&gt; 
  </code></pre>
  
  <p>What am I missing or not getting here </p>