Skip to content
corentin-begne edited this page Feb 14, 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.

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/

Search

On click on a table link, it will open a new tab to search on it.
Url model : http://localhost/scrud/[model]+[modeln]/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

Create

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

http://localhost/scrud/PermissionType/create

Update

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

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

Delete

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