Guest User

Untitled

a guest
Jan 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2. require_once __DIR__.'/../lib/silex.phar';
  3.  
  4. define('MODULES_PATH', realpath(__DIR__ . '/../lib/module'));
  5.  
  6. $app = new Silex\Application();
  7. $app['debug'] = true;
  8. $app['autoloader']->registerNamespace('Point', MODULES_PATH);
  9.  
  10. $app->mount('/point', new \Point\HelloControllerProvider());
  11.  
  12.  
  13.  
  14. $app->run();
  15.  
  16. //// htaccess
  17.  
  18. <IfModule mod_rewrite.c>
  19. Options -MultiViews
  20.  
  21. RewriteEngine On
  22. #RewriteBase /path/to/app
  23. RewriteCond %{REQUEST_FILENAME} !-f
  24. RewriteRule ^ index.php [L]
  25. </IfModule>
Add Comment
Please, Sign In to add comment