garak / PUGXGeneratorBundleSandbox

A sandbox for PUGXGeneratorBundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A sandbox for PUGXGeneratorBundle


Languages

Language:PHP 98.2%Language:JavaScript 1.8%Language:CSS 0.1%