Permalink
Browse files

Robot loader

  • Loading branch information...
vojtasvoboda committed Aug 17, 2014
1 parent 7b03818 commit f0bdffda0d6c8608d51ff93be0da05a97f697938
Showing with 167 additions and 6 deletions.
  1. +2 −1 composer.json
  2. +156 −1 composer.lock
  3. +8 −4 index.php
  4. +1 −0 temp/.htaccess
View
@@ -10,6 +10,7 @@
"require": {
"tracy/tracy": "2.2.*",
"dibi/dibi": "2.2.*",
"nette/forms": "2.2.*"
"nette/forms": "2.2.*",
"nette/robot-loader": "2.2.*"
}
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,16 +1,20 @@
<?php
// load all classes
// load Composer classes
require 'vendor/autoload.php';
require 'forms/RegistrationForm.php';
require 'models/Connection.php';
require 'models/Reservations.php';
// enable debugger
Tracy\Debugger::enable();
Tracy\Debugger::$email = 'vojtasvoboda.cz@gmail.com';
Tracy\Debugger::$logDirectory = '/log';
// enable robot loader
$loader = new Nette\Loaders\RobotLoader;
$loader->addDirectory('forms');
$loader->addDirectory('models');
$loader->setCacheStorage(new Nette\Caching\Storages\FileStorage('temp'));
$loader->register();
// reservations management
$connection = new Connection();
$reservations = new Reservations($connection);
View
@@ -0,0 +1 @@
deny from all

0 comments on commit f0bdffd

Please sign in to comment.