* * N2N is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details: http://www.gnu.org/licenses/ * * The following people participated in this project: * * Andreas von Burg.....: Architect, Lead Developer * Bert Hofmänner.......: Idea, Community Leader, Marketing * Thomas Günther.......: Developer, Hangar */ use n2n\web\http\Response; use n2n\impl\web\ui\view\html\HtmlView; $view = HtmlView::view($this); $html = HtmlView::html($this); $response = HtmlView::response($this); $httpStatus = $response->getStatus(); $title = $httpStatus . ' ' . Response::textOfStatusCode($httpStatus); $html->meta()->addCss('css/errorpage-500-development.css'); $html->meta()->addCss('css/font-awesome.css'); ?> <!DOCTYPE html> <html> <?php $html->headStart(); ?> <title><?php $html->out($title); ?> </title> <?php
<?php use n2n\impl\web\ui\view\html\HtmlView; use n2n\core\err\ThrowableModel; $view = HtmlView::view($this); $html = HtmlView::html($this); $throwableModel = $view->getParam('throwableModel'); $view->assert($throwableModel instanceof ThrowableModel); $e = $throwableModel->getException(); ?> <div id="status-container"> <div class="exception"> <?php if (0 < mb_strlen($message = $e->getMessage())) { ?> <h2>Message</h2> <p class="message"> <i class="fa fa-exclamation-triangle"></i> <?php $html->out($message); ?> </p> <?php } ?> <section> <div class="debug-info stack-trace"> <h3>Stack Trace</h3> <pre><?php
* N2N is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details: http://www.gnu.org/licenses/ * * The following people participated in this project: * * Andreas von Burg.....: Architect, Lead Developer * Bert Hofmänner.......: Idea, Community Leader, Marketing * Thomas Günther.......: Developer, Hangar */ use n2n\core\err\ThrowableModel; use n2n\impl\web\ui\view\html\HtmlView; use n2n\util\uri\Query; $view = HtmlView::view($this); $html = HtmlView::html($this); $request = HtmlView::request($this); $throwableModel = $view->getParam('throwableModel'); $view->assert($throwableModel instanceof ThrowableModel); $html->meta()->setTitle($throwableModel->getTitle()); $throwableInfos = $throwableModel->getThrowableInfos(); $html->meta()->addJs('js/jquery-2.1.4.min.js'); $html->meta()->addJs('js/exceptionhandler.js'); $html->meta()->addJs('js/sh/scripts/shCore.js'); $html->meta()->addJs('js/sh/scripts/shBrushPhp.js'); $html->meta()->addJs('js/sh/scripts/shBrushSql.js'); $html->meta()->addJs('js/sh/scripts/shBrushXml.js'); $html->meta()->addCss('js/sh/styles/shCore.css'); $html->meta()->addCss('js/sh/styles/shThemeDefault.css'); $html->meta()->addCss('css/errorpage-500-development.css'); $html->meta()->addCss('css/font-awesome.css'); $html->meta()->addJsCode('SyntaxHighlighter.all();');