To begin, we will add Pages
to the admin menu. Edit /ww.admin/header.php
and add the following highlighted line:
<ul>
<li><a href="/ww.admin/pages.php">Pages</a></li>
<li><a href="/ww.admin/users.php">Users</a></li>
And one more thing when we log into the administration part of the CMS, it makes sense to have the "front page" of the admin area be the Pages
section. After all, most of the work in a CMS is done in the Pages
section.
So, we change /ww.admin/index.php
so it is a synonym for /ww.admin/pages.php
. Replace the /ww.admin/index.php
file with this:
<?php require 'pages.php';
Next, let's get started on the Pages
section.
First, we will create /ww.admin/pages.php:
<?php require 'header.php'; echo '<h1>Pages</h1>'; // { load menu echo '<div class="left-menu">'; require 'pages/menu.php'; echo '</div>'; // } // { load main page echo '<div class="has-left-menu">'; require...