tp5 widget在linux上无法渲染

浏览:897 发布日期:2016/10/23 分类:ThinkPHP5专区 关键字: thinkphp5 widget
tp5 widget在linux上渲染为空是为什么啊。我在win7上是好的,但是在centos上就死活出不来,看源码,APP.php这个方法linux上返回的是空。求解
public static function invokeMethod($method, $vars = [])
{
if (is_array($method)) {
$class = is_object($method[0]) ? $method[0] : new $method[0];
$reflect = new \ReflectionMethod($class, $method[1]);
} else {
// 静态方法
$reflect = new \ReflectionMethod($method);
}
$args = self::bindParams($reflect, $vars);
// 记录执行信息
self::$debug && Log::record('[ RUN ] ' . $reflect->__toString(), 'info');
return $reflect->invokeArgs(isset($class) ? $class : null, $args);
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>