~askonomm/boilerplate

8813072b90314535996ea2fad25126b01fbd0951 — Asko N├Ámm 8 months ago 913b7c0
1.2
2 files changed, 15 insertions(+), 0 deletions(-)

M app.php
M functions.php
M app.php => app.php +10 -0
@@ 36,6 36,16 @@ class App extends Framework {
	}

	/**
	 * Return global template data.
	 *
	 * @return array
	 */
	public function getTemplateData(): array
	{
		return [];
	}

	/**
	 * Requires the actions file.
	 */
	public function action(): void

M functions.php => functions.php +5 -0
@@ 35,6 35,11 @@ if(class_exists('Framework')) {
	$app->registerTemplateHelpers( $app->getTemplateHelpers() );

	/**
	 * Set global template data.
	 */
	$app->setTemplateData( $app->getTemplateData() );

	/**
	 * Action!
	 */
	$app->action();