What is the problem with this link configuration?
$html->link($article['User']['username'],array('controller' => 'users','action' => 'view_profile',$article['User']['id'],array('class' => 'button','onmouseover'=>"loadtooltip(this,'$userid')",'onmouseout'=>'hidetooltip()')))开发者_StackOverflow);
I got this problem:
I'm doing wrong?
One or more of the variables you are passing to the link method is an array and not a string. It's either $article['User']['username']
, $article['User']['id']
or $userid
.
<? $html->link($article['User']['username'],array('controller' => 'users','action' => 'view_profile',$article['User']['id']),array('class' => 'button','onmouseover'=>"loadtooltip(this,'$userid')",'onmouseout'=>'hidetooltip()'));?>
Check Your $html->link syntax.
精彩评论