zzwy2/app/controller/manager/Error.php

34 lines
655 B
PHP
Executable File

<?php
namespace app\controller\manager;
class Error
{
protected $data = [];
public function __call($method, $args)
{
$this->data['seoTitle'] = '404';
return view('error/404')->assign($this->data);
}
public function jump()
{
$param = request()->param();
return view()->assign($param);
}
// 404
public function notFind()
{
$this->data['seoTitle'] = '404';
return view('error/404')->assign($this->data);
}
// 500
public function serviceFail()
{
$this->data['seoTitle'] = '500';
return view('error/500')->assign($this->data);
}
}