Extended Views |
09-15-2015, 04:09 PM
(This post was last modified: 09-15-2015, 04:12 PM by PaulD. Edit Reason: Small edit for clarification )
It seems perfectly sufficient to me, albeit a bit complicated for the example quoted. Could you not just collect the department data through a model call and pass that to the view to generate the select.
It all depends on exactly how the data is to be used and generated, but I would consider writing a helper or library to create the required select data in a more general and reusable way. For instance you may want the departments shown to be dependent on the user role, or training level etc. Hope that helps, Paul. |
Messages In This Thread |
Extended Views - by ad11 - 09-13-2015, 04:23 PM
RE: Extended Views - by PaulD - 09-15-2015, 04:09 PM
RE: Extended Views - by ad11 - 09-15-2015, 07:04 PM
RE: Extended Views - by mwhitney - 09-16-2015, 08:09 AM
RE: Extended Views - by ad11 - 09-16-2015, 11:32 AM
RE: Extended Views - by mwhitney - 09-16-2015, 01:06 PM
RE: Extended Views - by ad11 - 09-22-2015, 02:25 PM
RE: Extended Views - by mwhitney - 09-23-2015, 07:19 AM
RE: Extended Views - by cartalot - 09-23-2015, 03:01 PM
|