Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acseo/acseocrudsensiogeneratorbundle
https://github.com/acseo/acseocrudsensiogeneratorbundle
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/acseo/acseocrudsensiogeneratorbundle
- Owner: acseo
- Created: 2014-03-13T16:53:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-13T17:13:28.000Z (almost 11 years ago)
- Last Synced: 2023-06-03T10:01:19.661Z (over 1 year ago)
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ACSEO CRUD Generator using SensioGeneratorBundle
This bundle provide Twig template to generate CRUD applications with SensioGeneratorBundle in your Symfony2 application
## Requirements
- A Symfony 2 Project with SensioGeneratorBundle (embeded by default in the Symfony Standard Distribution)
- BraincraftBootstrapBundle (https://github.com/braincrafted/bootstrap-bundle)
- ACSEO ApyDataGridBundle (https://github.com/acseo/APYDataGridBundle)
- ACSEO FastShowGeneratorBundle (https://github.com/acseo/FastShowGeneratorBundle)## How to use it
### Step 1 : Get the code
Get the code using ``git submodule`` command :
````
cd /path/to/my/sf2project
git submodule add https://github.com/acseo/ACSEOCRUDSensioGeneratorBundle app/Resources/SensioGeneratorBundle
````
Now you should see a directory called 'skeleton' in app/Resources/SensioGeneratorBundle### Step 2 : Generate the CRUD for an Entity
CRUD creation is just the same as the original ``app/console doctrine:generate:crud`` command.````
cd /path/to/my/sf2project
php app/console doctrine:generate:crud
````
And follow the guidelines.
All the crud stuff, configured to work with Bootstrap 3, APYDataGrid and FastShow should be generated now !**But we must configure some things**
### Step 3 : Configure the grid
You will see that ``TODO`` insctruction have been generated in your Controller.
For now, we are not able to generate some usefull code to describe the attributes that the POST and PUT methods are waiting for.Simply edit your Controller file to make it work as you expect.