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

@ -24,4 +24,4 @@ $fiiConf['urls']['system'] = 'sys.iihsalf.net';
// Errata // Errata
$fiiConf['etc']['localPath'] = '/var/www/flashii.net/'; $fiiConf['etc']['localPath'] = '/var/www/flashii.net/';
$fiiConf['etc']['templatesPath'] = $fiiConf['etc']['localPath'] .'_sakura/templates/'; $fiiConf['etc']['templatesPath'] = $fiiConf['etc']['localPath'] .'_sakura/templates/';
$fiiConf['etc']['design'] = 'yuuno'; $fiiConf['etc']['design'] = 'yuuno';

View file

@ -40,3 +40,11 @@ set_error_handler(array('Flashii\Flashii', 'ErrorHandler'));
// Initialise Flashii Class // Initialise Flashii Class
$flashii = new Flashii\Flashii($fiiConf); $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 // Initialise templating engine
$flashii->initTwig(); $flashii->initTwig();
// Add page specific things
$renderData['page'] = array_merge($renderData['page'], [
'title' => 'Flashii Dev'
]);
// Print page contents // Print page contents
print $flashii->twig->render('main/index.tpl', print $flashii->twig->render('main/index.tpl', $renderData);
array(
'sakura_version' => SAKURA_VERSION,
'configuration' => $fiiConf,
'pageTitle' => 'Flashii Even More Nightly :^)'
)
);