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.

24 lines
604B

  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. require 'controllers/alexa.php';
  15. session_name('teacup');
  16. session_set_cookie_params(86400*30);
  17. session_start();
  18. $app->run();