开发者

url() problem: Unsupported operand types

I have a problem with print url on view:

<?php foreach ($rows as $id => $row): ?>
    <?php print $row; ?>
<?php 
?>
<a href="<?php echo url('vote', 'id='.$row->nid) ?>" class="voter"></a>
<?php endforeach; ?>

I am getting Fatal error: Unsupported operand types in /{uri}/includes/common.inc on line 1436

Co开发者_开发知识库uld somebody help me resolve this error?

Regards


Why you don't use l() function? It's a better solution that build your own link.

http://api.drupal.org/api/drupal/includes%21common.inc/function/l/6

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜