This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/main/index.php

23 lines
480 B
PHP
Raw Normal View History

<?php
/*
2015-03-29 03:16:42 +00:00
* Sakura Main Index
*/
// Declare Namespace
2015-03-25 09:59:10 +00:00
namespace Sakura;
2015-03-29 21:06:55 +00:00
// Define Sakura Path
define('ROOT_DIRECTORY', str_replace('main', '', dirname(__FILE__)));
2015-03-08 08:37:12 +00:00
// Include components
2015-03-29 21:06:55 +00:00
require_once ROOT_DIRECTORY .'_sakura/sakura.php';
// Add page specific things
$renderData['page'] = [
'title' => 'Flashii Dev'
];
2015-03-29 20:54:30 +00:00
$renderData['newsPosts'] = Main::getNewsPosts(3);
// Print page contents
print Main::$_TPL->render('main/index.tpl', $renderData);