<?php // Uncomment or remove // SlimBoilerplate\Layout\LayoutView::addJs('assets/js/demo.js'); // SlimBoilerplate\Layout\LayoutView::addCss('assets/css/demo.css'); SlimBoilerplate\Layout\LayoutView::setTitle('This is my title'); SlimBoilerplate\Layout\LayoutView::setDescription('This is my description'); SlimBoilerplate\Layout\LayoutView::setKeywords('This, is, my, keywords'); ?> <h2>Hello, DEMO 2</h2>
<?php SlimBoilerplate\Layout\LayoutView::setTitle('Error'); SlimBoilerplate\Layout\LayoutView::setDescription('Error page'); ?> <div> <h1>Error</h1> <?php if (isset($flash['error'])) { ?> <div class="error"><?php echo $flash['error']; ?> </div> <?php } ?> </div>