Awesome
PUGXGeneratorBundle sandbox
A sandbox for PUGXGeneratorBundle.
Screenshots
(click for fullscreen images)
Setup
- Clone this repo
- run
composer install
- run
app/console doctrine:database:create
- run
app/console doctrine:schema:update --force
- run
app/console doctrine:fixtures:load --no-interaction
- Edit
vendor/components/font-awesome/less/variables.less
to point@fa-font-path
to/fonts
(instead of../fonts
).
If you find a more elegant solution for last point, feel free to open a Pull Request.
Creating instructions
This project has been created following instructions of PUGXGeneratorBundle.
Details of commands used:
$ php app/console doctrine:generate:entity --no-interaction \
--entity=GarakSandboxBundle:User \
--fields="firstName:string(255) lastName:string(255) email:string(255) \
active:boolean lastLogin:datetime birthday:date"
$ php app/console pugx:generate:crud \
--entity=GarakSandboxBundle:User \
--layout=GarakSandboxBundle::layout.html.twig \
--theme=GarakSandboxBundle:Form:theme.html.twig \
--with-write --with-filter --with-sort --use-paginator \
--no-interaction
$ php app/console faker:populate