You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
571 B

  1. <?php
  2. chdir('..');
  3. require 'vendor/autoload.php';
  4. // Configure the Savant plugin
  5. \Slim\Extras\Views\Savant::$savantDirectory = 'vendor/saltybeagle/savant3';
  6. \Slim\Extras\Views\Savant::$savantOptions = array('template_path' => 'views');
  7. // Create a new app object with the Savant view renderer
  8. $app = new \Slim\Slim(array(
  9. 'view' => new \Slim\Extras\Views\Savant()
  10. ));
  11. require 'controllers/auth.php';
  12. require 'controllers/controllers.php';
  13. require 'controllers/pebble.php';
  14. session_name('teacup');
  15. session_set_cookie_params(86400*30);
  16. session_start();
  17. $app->run();