Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - khoinp1012

2
Suggestions / Duplicate all pages instead of single page
Hi PHPRad team,
Today I want to suggest a feature that I think was very important. I wanted create 2 versions of single table, 1st for admin group - can edit to all field and 2nd for user group - with few fields are not allowed to edit.
Even with very easy requirement, I was unable to do it with PHPRad alone, without manually coding. I tried 2 methods:
1 - Dupliacte pages. As we know, which every table, PHPRad will create 5 pages: List, View, Add, Edit, Delete. I duplicated all of them. Original pages I would assign to Admin group, newly duplicated pages I would assign to User group. However, the newly duplicated pages were not linked to each other. The New_List_Page still connected to orginal Edit Page.
2 - Create view: I tried to create another view from table then assign its page to user group. But for view, there were only List Page and View Page. I cannot edit view directly via PHPCrud
So I suggest add "Duplicate all pages" feature, whenever I duplicate all pages, PHPRad will generate all 5 pages: List, View, Add, Edit, Delete but these 5 pages will link to each others, not link to orginal pages. If I dont want any page, I will delete them.
English was not my native language, please ignore any language-mistakes.
3
Bugs / [BUG] After Update Event was not triggered on InlineEdit
In PHPRad, both "after update" and "before update" in Edit Page only trigger in Edit Page.
However, when I edit a field directly in List Page (with inline edit), the code did not trigger at all. I can fix it manually by copy the code into "editfield" in controller.
It may be a "feature" of PHPRad but I think it's a bug.