Advertisement
dimti

Untitled

Feb 8th, 2016
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2. // Dispatch
  3. $controller->dispatch($action, new Action('error/not_found'));
  4. Session::save();
  5. if (\Majestic\Env::Server('HTTP_X_REQUESTED_WITH') != 'XMLHttpRequest' && !headers_sent()) {
  6.     LastModified();
  7.     if (strpos(\Majestic\Env::Server('HTTP_USER_AGENT'), 'MSIE') !== false) {
  8.         header('X-UA-Compatible: IE=edge,chrome=1');
  9.     }
  10.     LaravelSession::getInstance()->setKey(Session::getId());
  11. }
  12. // Output
  13. $response->output();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement