Skip to content

Commit

Permalink
Copy sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Spamercz committed Jan 17, 2016
1 parent 6f57aae commit 1e839cf
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
16 changes: 16 additions & 0 deletions App/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

require __DIR__ . '/../vendor/autoload.php';
$configurator = new Nette\Configurator;
//$configurator->setDebugMode('23.75.345.200'); // enable for your remote IP

$configurator->enableDebugger(__DIR__ . '/../log');
$configurator->setTempDirectory(__DIR__ . '/../temp');
$configurator->createRobotLoader()
->addDirectory(__DIR__)
->register();
$configurator->addConfig(__DIR__ . '/config/config.neon');
//$configurator->addConfig(__DIR__ . '/config/config.local.neon');
$container = $configurator->createContainer();

return $container;
19 changes: 19 additions & 0 deletions App/Config/config.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
parameters:


php:
date.timezone: Europe/Prague


application:
errorPresenter: Error
mapping:
*: App\*Module\Presenters\*Presenter


session:
expiration: 14 days


services:
router: App\RouterFactory::createRouter
8 changes: 8 additions & 0 deletions App/FrontModule/HomepagePresenter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace App\Presenters;

class HomepagePresenter extends \Nette\Application\UI\Presenter
{

}
20 changes: 20 additions & 0 deletions App/Router/routeFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
namespace App;

use Nette;
use Nette\Application\Routers\RouteList;
use Nette\Application\Routers\Route;

class RouterFactory
{
/**
* @return Nette\Application\IRouter
*/
public static function createRouter()
{
$router = new RouteList;
$router[] = new Route('<presenter>/<action>[/<id>]', 'Homepage:default');

return $router;
}
}
Empty file.

0 comments on commit 1e839cf

Please sign in to comment.