开发者

What is the problem with this link configuration?

开发者 https://www.devze.com 2023-03-20 11:41 出处:网络
$html->link($article[\'User\'][\'username\'],array(\'controller\' => \'users\',\'action\' => \'view_profile\',$article[\'User\'][\'id\'],array(\'class\' => \'button\',\'onmouseover\'=>&
$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

精彩评论

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