开发者

HTML Codes in CakePHP $html->link function

开发者 https://www.devze.com 2023-01-13 14:47 出处:网络
This code $html->link(\" »\", \'/events/view/\'.$event[\'Event\'][\'id\']), array(\'escape\'=>false,\'class\'=>\'more\') )

This code

 $html->link(" »", '/events/view/'.$event['Event']['id']), array('escape'=>false,'class'=>'more') )

Outputs

开发者_如何转开发
<a href="/events/view/4"> &amp;raquo;</a>

instead of >>

Any idea?


basically you have syntax error instead you should have:

$this->Html->link(" &raquo;", '/events/view/'.$event['Event']['id'], array('escape'=>false,'class'=>'more') );

At least that's what I see.

0

精彩评论

暂无评论...
验证码 换一张
取 消