volist中length始终有错

浏览:3015 发布日期:2013/10/17 分类:求助交流
<volist name="hotel_image_list" id="hotel_image" length="4">
   <li class="top140"><a href="#"><img src="{$hotel_image.IMAGEURL}" width="140" height="110" alt=""></a></li>
</volist>
始终提示错误

syntax error, unexpected ',' E:\web-pro\wwwroot\4.1\Home\Runtime\Cache\194f05fbd342edf9070fa53d1f5ee471.php 第 135 行.
错误位置
FILE: E:\web-pro\wwwroot\4.1\ThinkPHP\Lib\Core\Think.class.php  LINE: 268
TRACE
[13-10-17 10:03:10] E:\web-pro\wwwroot\4.1\ThinkPHP\Lib\Core\Think.class.php (268) halt(syntax error, unexpected ',' E:\web-pro\wwwroot\4.1\Home\Runtime\Cache\194f05fbd342edf9070fa53d1f5ee471.php 第 135 行.)
[13-10-17 10:03:10] E:\web-pro\wwwroot\4.1\ThinkPHP\Lib\Core\Think.class.php (283) Think::appError(4, syntax error, unexpected ',', E:\web-pro\wwwroot\4.1\Home\Runtime\Cache\194f05fbd342edf9070fa53d1f5ee471.php, 135)
[13-10-17 10:03:10] () Think::fatalError()

被解析的页面一个函数出现一个多余的逗号
<?php if(is_array($hotel_image_list)): $i = 0; $__LIST__ = array_slice($hotel_image_list,,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$hotel_image): $mod = ($i % 2 );++$i;?><li class="top140"><a href="#"><img src="<?php echo ($hotel_image["IMAGEURL"]); ?>" width="140" height="110" alt=""></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
最佳答案
评论( 相关
后面还有条评论,点击查看>>