[eluser]dieter[/eluser]
Hello,
I'd like some advice or best-practices on how to accomplish the following:
I need a system to add items to a collection. But I want to make it extensible: instead of having one single submission form, I'd like to have a tabbed system, with different "input styles" (e.g, 'basic', 'bulk', 'based on file list', etc.), and thus different fields per submission.
So my controller 'admin/items/create' now loads the partial views. But how to handle the submission 'elegantly'? One solution would be to add a separate controller per plug-in (eg. admin/items_create_basic/ or admin/items_create_bulk/ ...) It would be the easiest solution I think, but it can't convince me.
Routing maybe, but can you add routes dynamicly? I don't want that you have to modify routes.php for each plug-in. I'd like a sort of plug-and-play system...
So any advice or tricks would be welcome...