Skip to content
corentin-begne edited this page Feb 12, 2018 · 7 revisions

SCRUD require API library to work.
This library is managed by the ScrudController. Once activated in config and allowed in ACL, this controller provide some access urls.

Model list

The root list all the models and models assocation having hasOne relation (mean foreign key unique). We dont have this type of relation in our default database.

http://localhost/scrud/

Model Search

On click on a table link, it will open a new tab to search on it.
Url model : http://localhost/scrud/[model]+[model2]+[model3]/search

http://localhost/scrud/PermissionType/search

On this page you can :

  • Filter results adding a filter on a column, autocompleted like%
  • Change the sorting
  • Remove columns (display only)
  • Delete rows, checking all wanted and click on the trash to valid
  • Edit a row clicking on it
  • Open new tab to create a row

Model Create

On click on the + button, it wiil open a new tab to create a row.
Url model : http://localhost/scrud/[model]+[model2]+[model3]/create

http://localhost/scrud/PermissionType/search

Model Update

On click on the row, it will open a new tab to edit it.
Url model : http://localhost/scrud/[model]+[model2]+[model3]/read?id=[idModel]

http://localhost/scrud/PermissionType/read?id=1

Model Delete

In the search page, check all row you want to delete and click on the trash button to valid.