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 sc
最佳答案