Overwrite crud field using CRUD::setFromDb(); #871
-
Hi, I know I can skip this line and setup all the fields by myself, but what if I only want to change the behaviour of 1 specific field, for example when it's a foreign key and I want to show a select dropdown. Is it possible to only write some code for that field and keep the "default" fields that were setup by the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found it, you can first call |
Beta Was this translation helpful? Give feedback.
Found it, you can first call
CRUD::setFromDb();
and useCRUD::addField();
afterwards which will overwrite the field.