- BC Break: _PHP_ namespaces changed (PSR-4 standard). The _root_ namespace for all _PF_ related scripts is Exodus4D\Pathfinder
- BC Break: Project folder structure changed. Removed `app/main` dir. - BC Break: Core _PHP_ framework + dependencies moved into `composer.json` and are no longer part of this repo
This commit is contained in:
40
app/Controller/MapController.php
Normal file
40
app/Controller/MapController.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: exodus4d
|
||||
* Date: 08.02.15
|
||||
* Time: 21:18
|
||||
*/
|
||||
|
||||
namespace Exodus4D\Pathfinder\Controller;
|
||||
|
||||
|
||||
use Exodus4D\Pathfinder\Lib\Config;
|
||||
use Exodus4D\Pathfinder\Lib\Resource;
|
||||
|
||||
class MapController extends AccessController {
|
||||
|
||||
/**
|
||||
* @param \Base $f3
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function init(\Base $f3) {
|
||||
$resource = Resource::instance();
|
||||
$resource->register('script', 'app/mappage');
|
||||
|
||||
$character = $this->getCharacter();
|
||||
|
||||
// characterId
|
||||
$f3->set('tplCharacterId', $character->id);
|
||||
|
||||
// page title
|
||||
$f3->set('tplPageTitle', $character->name . ' | ' . Config::getPathfinderData('name'));
|
||||
|
||||
// main page content
|
||||
$f3->set('tplPageContent', false);
|
||||
|
||||
// JS main file
|
||||
$f3->set('tplJsView', 'mappage');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user