Administration pages
We now have pages like post list and post item. We also have pages for subscribers, mail, comments and users that we might want to get a better overview of. And as we extend the system with new functionallity we want to be able to access those views without having to type the url every time. So we start by rewriting the login page, so that it redirect you when you login.
// Add table topic
user->id > 0) {
switch ($ad->user->status) {
case 1: Http::redirect('./');
case 2: Http::redirect('./');
case 3: Http::redirect('/menu-admin');
}
...
Let's also make sure that admin-menu link is shown in our menu.
// views/start/menu.php
user->status > 2) { ?>
Admin
And now we can fill some links into our menu.
// views/admin/menu.php
Now we can add all the links we want to all sub views we like. I only added some of the ones we have created so far.
- framework, php, menu, software
Comment
2 comments
2022-11-06 17:28:50 -
Hegemon
2022-11-06 17:27:56 -
Hegemon