This is probably going to break all the templates

This commit is contained in:
flash 2015-03-08 05:47:28 +01:00
parent 93f5c15e88
commit 1d0f78d59f
3 changed files with 15 additions and 8 deletions

View file

@ -40,3 +40,11 @@ set_error_handler(array('Flashii\Flashii', 'ErrorHandler'));
// Initialise Flashii Class
$flashii = new Flashii\Flashii($fiiConf);
// Set base page rendering data
$renderData = array(
'sakura' => [
'sakura_version' => SAKURA_VERSION,
'urls' => $fiiConf['urls']
]
);

View file

@ -9,11 +9,10 @@ require_once('/var/www/flashii.net/_sakura/sakura.php');
// Initialise templating engine
$flashii->initTwig();
// Add page specific things
$renderData['page'] = array_merge($renderData['page'], [
'title' => 'Flashii Dev'
]);
// Print page contents
print $flashii->twig->render('main/index.tpl',
array(
'sakura_version' => SAKURA_VERSION,
'configuration' => $fiiConf,
'pageTitle' => 'Flashii Even More Nightly :^)'
)
);
print $flashii->twig->render('main/index.tpl', $renderData);