The following files exists in this folder. Click to view.
hello_view2.php1 lines ASCII Unix (LF) <?php
/**
* This is a Anax pagecontroller.
*
*/
// Get environment & autoloader and the $app-object.
require __DIR__.'/config_with_app.php';
date_default_timezone_set('UTC');
// Set the title of the page
$app->theme->setVariable('title', "Hello World Pagecontroller");
// Add a view
$app->views->add('welcome/hello_world');
$app->views->add('welcome/quote', ['today' => date('r')], 'header');
$app->views->add('welcome/quote', ['today' => date('r')], 'footer');
// Render the response using theme engine.
$app->theme->render();