testing
This commit is contained in:
parent
58011071c6
commit
df27981146
2 changed files with 177 additions and 165 deletions
|
@ -161,4 +161,14 @@ class Main {
|
|||
|
||||
}
|
||||
|
||||
// Loading info pages
|
||||
public static function loadInfoPage($id) {
|
||||
|
||||
// Get contents from the database
|
||||
$infopage = Database::fetch('infopages', false, ['shorthand' => [$id, '=']]);
|
||||
|
||||
print_r($infopage);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -9,11 +9,13 @@ namespace Sakura;
|
|||
// Include components
|
||||
require_once '/var/www/flashii.net/_sakura/sakura.php';
|
||||
|
||||
// Do parsing etc.
|
||||
// Set default variables
|
||||
$renderData['page'] = [
|
||||
'title' => 'Info pages',
|
||||
'content' => 'Unable to load the requested info page.'
|
||||
];
|
||||
|
||||
$ipData = Main::loadInfoPage(isset($_GET['r']) ? strtolower($_GET['r']) : '');
|
||||
|
||||
// Print page contents
|
||||
print Main::$_TPL->render('main/infopage.tpl', $renderData);
|
||||
|
|
Reference in a new issue