Advise on part/action architecture

Topics: General, Writing modules
Oct 5, 2011 at 10:53 AM
Edited Oct 5, 2011 at 11:37 AM

Can you guys give me some advice on the following:

I have a user detail page which shows some basic information about a user. Then there are 4 other pages which are shown as tabs withing this user detail page like user connections, administration, etc.

What's the best way to create these pages?:

- Create a part for each pagetype and make them visible and invisible by placements and without a record. and attache those parts to the user type. then create for each part a action which return the user as a shape.

- Create controller and create for each route a different action with it's own routes.

Thanks!

Coordinator
Oct 5, 2011 at 7:35 PM

Both sound ok.