So how do people do this? It’s far harder than it appears to build a dashboard!
I want to have a nice page with blocks of content, like a customer contact sheet, a notes field, a task module, etc.
So naive me says, 'I’ll build a controller/view/template system for each module! Then have a main page that just renders each template for that module, which will call the appropriate action on the controller and load the data in. Easy!"
But no: you can render a template, and even render a view… but the controller that actually gets the info for the note, or the customer data–apparently that cannot be called! Can it?
Do I really have to build a master controller that does the work of every single controller for a module? That will be thousands of lines per action, possibly! What a tangled, coupled mess!
It cannot possibly be this hard to render multiple isolated, different pieces of content on a page. Surely there’s a solution if you want a child template that is more than just static html, without having to laboriously build up every single assign in advance in one huge controller action.
How is this supposed to be done?