开发者

url() problem: Unsupported operand types

开发者 https://www.devze.com 2023-01-22 12:52 出处:网络
I have a problem with print url on view: <?php foreach ($rows as $id => $row): ?> <?php print $row; ?>

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

精彩评论

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