私はこれを作成しました:
<?php
class AppExceptionHandler
{
public static function handle($error)
{
$this->controller->redirect('www.google.com');
//echo 'Oh noes! ' . $error->getMessage();
// ...
}
// ...
}
?>
エコーは正常に出力されますが、レイアウトまたはビューを使用するにはどうすればよいですか? 私はこのエラーを取得し続けます:
Fatal error: Using $this when not in object context in ...