Skip to content

dracoo/sf-templates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templates for sf2.4 projects

  • symfony2.4 and web/grafica folder, plus .htaccess tweaks
  • sonata admin bundle (via ORM) with FOS user and e-one customization

Installation

Install via composer, then set up sf2 permissions

$ rm -rf app/cache/*
$ rm -rf app/logs/*

$ 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

Update database schema and generate backend admin

$ php app/console doctrine:schema:update --force
$ php app/console fos:user:create admin admin@example.com admin --super-admin

Configuration reference

To use gmail mailing service (during developement) use these parameters

parameters:
    mailer_transport: gmail
    mailer_host: localhost
    mailer_user: your-gmail-user
    mailer_password: your-gmail-password

Features

  • FOS features have been restricted to resetting only (see routing.yml) and use SonataAdmin theming.

About

Templates for symfony2 projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.8%
  • CSS 0.2%