<?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>
<?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::addJs('assets/js/contact.js'); SlimBoilerplate\Layout\LayoutView::setTitle('Contact'); // SlimBoilerplate\Layout\LayoutView::setDescription('This is my description'); // SlimBoilerplate\Layout\LayoutView::setKeywords('This, is, my, keywords'); ?> <h2>Contact</h2> <?php if (!isset($success) && !isset($error)) { ?> <div class="gmap" id="maps"></div> <?php } ?> <form action="<?php echo url('contact'); ?> " method="post" class="contact" id="contact-form"> <?php if (isset($success) && $success) { ?> <div id="contact-validation-success" class="success">Votre message a été envoyé avec succès.</div> <?php } ?>