开发者

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:

What is the problem with this link configuration?

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜