I have a Register page that allow parents to register their child to courses.
The page contents:
- Logging in data: new user data (Users table)
- Parents data: The 2 parents (Parents table)
- Pupil data: The registering child (Pupils table), only some data of the kid in here, other data in Kids table
- Siblings data: other kids of the same parents (Kids table), the pupil also in this list.
- Course ID : the course that Pupil enroll to (Courses table)
- Education histories: of the pupil (EduHistories table)
Please advice me the better approach for this.
- Should I patch and save them all in UsersController->register() action?
- If splitting into many actions for each controller, how can I make them work together as 1 registering page for user GUI ?
Thank you very much for your advice.