模板{:U()}报错,急!在线等.

浏览:1166 发布日期:2013/07/28 分类:求助交流
action代码:    public function result(){
        $this->serialnum = "11";
        $this->name = "name";
        $this->ip1 = "192.168.0.1";
        $this->ip2 = "192.168.0.2";
        $this->ip3 = "192.168.0.3";
        $this->unit_id = "1";
        $this->display();
    }
模板代码:<html>
<body>
<a href="{:U('app/Operation/open',array('unit_id'=>$unit_id,'serialnum'=>$serialnum,'name'=>$name,'ip1'=>$ip1,'ip2'=>$ip2,'ip3'=$ip3))}" class='hei'>return</a>
</body>
</html>
出错信息::(
syntax error, unexpected '=', expecting ')'
错误位置

FILE: /home/nms/etc/htdocs/PHP/APP/Runtime/Cache/e78d9e6ed308cc0c2707b09a512cb7df.php  LINE: 3

ThinkPHP3.1.3 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]
cache代码:<?php if (!defined('THINK_PATH')) exit();?><html>
<body>
<a href="<?php echo U('app/Operation/open',array('unit_id'=>$unit_id,'serialnum'=>$serialnum,'name'=>$name,'ip1'=>$ip1,'ip2'=>$ip2,'ip3'=$ip3));?>" class='hei'>return</a>
</body>
</html>
最佳答案
评论( 相关
后面还有条评论,点击查看>>