日期:2014-05-17  浏览次数:20416 次

程序不执行$run = new $mod();就不执行啦!是什么原因
$mod = isset($_GET['m']) ? ucfirst($_GET['m']) : 'Index'; //默认加载Index 函数isset ucfirst() 首字母大写
$mod .= "Action";
$run = new $mod();
$run->run();

------解决方案--------------------
$run = new $mod();
$run->run();

new mod();