Tutorial by Examples

Consider following directory structure to comply with best practices: [ProjectRoot] |---[app] | |---[resources] | routes.php |---[web] | |---[resources] | | |---[css] | | |---[img] | | |---[js] | .htaccess | index.ph...
Create web directory in same folder as the vendor directory. Create index.php file in web directory with contents <?php // web/index.php require_once __DIR__.'/../vendor/autoload.php'; $app = new Silex\Application(); $app->get("/", function () { return "Hello wo...

Page 1 of 1