sadok-f/silex-simple

A simple project structure to get start with Silex

2.0 2017-01-29 22:54 UTC

This package is auto-updated.

Last update: 2024-12-11 20:07:19 UTC


README

A simple project structure to get start with Silex

Installation:

$ composer create-project sadok-f/silex-simple

Browsing the Demo Application:

$ php -S localhost:8888 -t web/ web/index_dev.php

Then, browse to http://localhost:8888/ or Then, browse to http://localhost:8888/MyName

Getting started with Silex:

  • 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' }