Files
pathfinder/app/main/controller/mapcontroller.php
Exodus4D ec6ed66a6b - add current character name as document.title
- improved document.title blink on new rally point with inactive tab, #279
2016-08-06 16:30:02 +02:00

33 lines
619 B
PHP

<?php
/**
* Created by PhpStorm.
* User: exodus4d
* Date: 08.02.15
* Time: 21:18
*/
namespace Controller;
class MapController extends AccessController {
/**
* @param \Base $f3
*/
public function init($f3) {
$character = $this->getCharacter();
// page title
$pageTitle = $character ? $character->name : 'Map';
$f3->set('pageTitle', $pageTitle);
// main page content
$f3->set('pageContent', false);
// body element class
$f3->set('bodyClass', 'pf-body');
// JS main file
$f3->set('jsView', 'mappage');
}
}