Index index 渲染网页出错(linux php7.1 apach2.2)

浏览:280 发布日期:2018/05/10 分类:求助交流 关键字: Index index 渲染网页出错
<?php
namespace app\index\controller;

use think\View;
use think\Controller;


class Index extends Controller
{
public function index()
{
$v=new View();

return $v->fetch('Index/index'); //试了试这句,*500错误

return $this->fetch('index');//然后再试了这句,*500错误

return “mmmmm”;//这句行不报错!难道说只要调用其他的类方法都不行?只能输出纯文本?(index/view/index.html文件存在的)

}

}

为什么这样?(我把我有的目录文件都设置成777权限了)


500 Internal Server Error

If you get this error when you access .php files, most likely your code is old and must be updated. We have PHP 7.1 and some old insecure functions have been removed. Just update your scripts and error will gone.
最佳答案
评论( 相关
后面还有条评论,点击查看>>