eval的问题
老师你在4-2讲中说,用如下代码
$controller = $name.'controller';
$obj = new $controller();
$obj -> $method;
代替evaluate();可是除了这样的错
Fatal error: Method name must be a string inD:\WWW\test\MVC\framework\function\function.php on line 7
老师你在4-2讲中说,用如下代码
$controller = $name.'controller';
$obj = new $controller();
$obj -> $method;
代替evaluate();可是除了这样的错
Fatal error: Method name must be a string inD:\WWW\test\MVC\framework\function\function.php on line 7
2015-07-04
举报