在HTML中无法识别Cakephp链接(Cakephp Link is not recognized in HTML)
我在Cakephp中用
Html->link
生成 -Html->link
一个链接echo $this->Html->link('Download',array( 'plugin'=> 'galleries', 'controller'=> 'galleries', 'action'=> 'download', $download),array('class'=>'down'));
输出是
<a href="/galleries/galleries/download/schiffchen_seide.jpg" class="down">Download</a>
此链接无法识别。 我无法点击它。 但是,如果我把输出链接并在HTML代码中实现它,一切都很好
在此之后我试图回应链接 - 同样的问题。
这是我认为的一个片段
<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>
也许有人可以给我一点提示?
I generate in Cakephp with
Html->link
a linkecho $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?
原文:https://stackoverflow.com/questions/4530657
更新时间:2020-11-14 20:11