This is a boilerplate I've made to gain time when I need to kickstart projects
This ultimate symfony2 boilerplate comes with :
- FOSUserBundle : Provides user management for your Symfony2 Project. Compatible with Doctrine ORM & ODM, and Propel.
This boilerplate comes with all the Sonata bundles enabled and preconfigured
The easiest way to get started is to clone the repository:
$ mkdir myproject
$ cd myproject
# Get the latest snapshot
$ git clone https://github.com/numerogeek/symfony-sonata-admin.git ./
$ git remote rm origin
#setup ACL (refer to the symfony documentation).
$ HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
#Then...
$ make
$ make install
# A superadmin user is created with the fixtures with username `admin` and password `admin`
# if an error occurs, try :
$ php app/console doctrine:database:create
# and again
# make install
And if you need it:
$ php app/console server:run