Edit page working
This commit is contained in:
16
controllers/pages.php
Normal file
16
controllers/pages.php
Normal 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);
|
||||
Reference in New Issue
Block a user