Carry out the following steps:
Before you put any code in
view.php
, openconcrete\themes\core\concrete.php
and have a look at the content of the file. Right before$innerContent
is printed, there are a few lines about printing any existing errors. This is what we're going to need in ourview.php
file too. Copy and insert it in the new file, and it should look like the following:<?php defined('C5_EXECUTE') or die('Access Denied.'); $this->inc('elements/header.php'); ?> <div id="content"> <?php Loader::element('system_errors', array('error' => $error)); ?> <?php echo $innerContent; ?> </div> <?php $this->inc('elements/footer.php'); ?>
Now that we handle errors as well, we can use our
view.php
file to style the login page. Openconfig/site_theme_paths.php
in your editor.There are already a few examples we can use as a template, or alternatively simply remove everything and insert the following...