A sandbox for PUGXGeneratorBundle
PHP JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
src/Garak/SandboxBundle
web
.gitignore
README.md
composer.json
composer.lock

README.md

PUGXGeneratorBundle sandbox

A sandbox for PUGXGeneratorBundle.

Screenshots

(click for fullscreen images)

list with sorting details list with pagination details list with open filters show edit

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