I generate in Cakephp with Html->link a link
echo $this->Html->link('Download',array(
'plugin'=> 'galleries',
'controller'=> 'galleries',
'action'=> 'download',
$download),array('class'=>'down'));
The output is
<a href="/galleries/galleries/download/schiffchen_seide.jpg" class="down">Download</a>
This link is not recognized. I can not click on it.
But if I put the output link and implement it in the HTML code, all is fine
After this I tried to echo the link – same problem.
This is a snippet from my view
<nav><a href="#" class="rght">next</a><?php if($download){ echo $this->Html->link('Download',array('plugin' => 'galleries', 'controller' => 'galleries','action' => 'download', $download),array('class'=>'down')); } ?><a href="#" class="lft">prev</a></nav>
Maybe somebody can give me a little hint?
Solution:
It was not a PHP Problem but CSS Problem… specially a z-index Problem in my Jquery Plugin (ImageViewer) rolleyes
The schemata of the HTML is:
The Problem were the nav tags in every article tag. The “prev&next” links appear in every nav structure but not the “download” link. ergo: i can click on the “prev&next” links but not on the “download” link… So, for a fast solution i set the z-index for my current article view. But i must rework my HTML Code structure
Thanks for reading my question.