Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once __DIR__.'/../lib/silex.phar';
- define('MODULES_PATH', realpath(__DIR__ . '/../lib/module'));
- $app = new Silex\Application();
- $app['debug'] = true;
- $app['autoloader']->registerNamespace('Point', MODULES_PATH);
- $app->mount('/point', new \Point\HelloControllerProvider());
- $app->run();
- //// htaccess
- <IfModule mod_rewrite.c>
- Options -MultiViews
- RewriteEngine On
- #RewriteBase /path/to/app
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ index.php [L]
- </IfModule>
Add Comment
Please, Sign In to add comment