Edit page working

This commit is contained in:
2025-08-12 23:08:20 -07:00
parent 4aebef12c8
commit 2f76c1ae35
15 changed files with 272 additions and 7 deletions

16
controllers/pages.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
$data['title'] = 'Novaconium Pages';
if ( empty($session->get('username'))) {
$redirect->url('/novaconium/login');
$messages->error('You are not loggedin');
makeitso();
}
// Get the pages
$query = "SELECT id, title, created, updated, draft FROM pages";
$matched = $db->getRows($query);
$data['pages'] = $matched;
view('@novacore/pages', $data);