A simple project structure to get start with Silex
$ composer create-project sadok-f/silex-simple
$ php -S localhost:8888 -t web/ web/index_dev.php
Then, browse to http://localhost:8888/ or Then, browse to http://localhost:8888/MyName
- Create a new Controller that extend the CoreController, example
Core\Controller\ContactController
- Add a new entry in
config/routing.yml
, example :
contact_us_:
path : /contact-us
defaults: { _controller: 'Core\Controller\ContactController::contactAction' }