示例#1
0
文件: error.php 项目: chevronphp/chev
 public function __invoke(Dispatcher $views)
 {
     return $views->get("error.php", ["class" => get_class($e), "message" => $e->getMessage(), "code" => $e->getCode(), "file" => $e->getFile(), "line" => $e->getLine(), "trace" => $e->getTraceAsString()]);
 }
示例#2
0
文件: index.php 项目: chevronphp/chev
 public function index(Dispatcher $views)
 {
     return $views->get("index.php");
 }