Mirror of Quill
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.

21 lines
536 B

11 years ago
  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. session_name('quill');
  14. session_set_cookie_params(86400*30);
  15. session_start();
  16. $app->run();