syntax error, unexpected ')',

浏览:2188 发布日期:2014/12/18 分类:求助交流 关键字: 模板 语法错误 语法
版本是ThinkPHP3.2.2完整版,前几天刚更新的
本人学生,自学的新手,遇到一个令人郁闷的问题。不知道是不是框架的问题
其他公共函数中,写法类似,却没有问题。

使用模板,页面出现如下提示:
:(
syntax error, unexpected ')', expecting variable (T_VARIABLE) or '$'
错误位置

FILE: D:\wamp\www\think\Index\Runtime\Cache\Home\be481c8cd0814b788d3a211fee2f3f25.php  LINE: 85
第85行就是<?php if(is_array($))……<?php if(is_array($)): $i = 0; $__LIST__ = $;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
    <td><?php echo ($vo["re_id"]); ?></td>
    <td><?php echo ($vo["re_name"]); ?></td>
    <td><input value="<?php echo ($vo["re_xxcj"]); ?>" type="text" class="chengjiluru"></td>
    <td><input value="<?php echo ($vo["re_wmsj"]); ?>" type="text" class="chengjiluru"></td>
    <td><input value="<?php echo ($vo["re_sjhd"]); ?>" type="text" class="chengjiluru"></td>
    <td><input value="<?php echo ($vo["re_shgz"]); ?>" type="text" class="chengjiluru"></td>
    <td><input value="<?php echo ($vo["re_zyjn"]); ?>" type="text" class="chengjiluru">
    <input value="1" type="hidden" class="chengjiluru"></td>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>
这是模板文件里面写的内容:<volist mame="chengji" id="vo">
<tr>
    <td>{$vo.re_id}</td>
    <td>{$vo.re_name}</td>
    <td><input value="{$vo.re_xxcj}" type="text" class="chengjiluru"></td>
    <td><input value="{$vo.re_wmsj}" type="text" class="chengjiluru"></td>
    <td><input value="{$vo.re_sjhd}" type="text" class="chengjiluru"></td>
    <td><input value="{$vo.re_shgz}" type="text" class="chengjiluru"></td>
    <td><input value="{$vo.re_zyjn}" type="text" class="chengjiluru">
    <input value="1" type="hidden" class="chengjiluru"></td>
</tr>
</volist>
这是控制器里面的内容:public function ChengJiLuRu(){
    $banji=session('guanliyuanclass');//获得班级和学期
    $xueqi=session('guanliyuanterm');
    $tiaojian['re_class'] = $banji;//查询条件
    $tiaojian['re_term'] = $xueqi;
    $ziduan=array('re_id','re_name','re_xxcj','re_wmsj','re_sjhd','re_shgz','re_zyjn');//学号、姓名、学习成绩、文明守纪、实践活动、社会工作、专业技能
    $chengjibiao=M('Result');//实例化成绩表
    $this->chengji=$chengjibiao->where($tiaojian)->field($ziduan)->select();//对互评表进行查询
    $this->display();//用来显示指定的模板
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>