unexpected 'module' , expecting variable or '$'

浏览:237 发布日期:2015/10/07 分类:求助交流 关键字: <?php
文档如下:
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用入口文件

$ module=isset($ _GET['m'])?$ _GET['m']:'Index';
$ action=isset($ _GET['a'])?$ _GET['a']:'Index';
$ do=new $ module;
$ do->$ action;
class index{
function __construct(){
echo'index控制器的index方法';
}
function Index(){
echo'index方法';
}
}


这问题出在哪里呢?$这个符号也已尝试修改很多次了,求助
最佳答案
评论( 相关
后面还有条评论,点击查看>>