Controlling number of views |
[eluser]elmne[/eluser]
I would like to find out the best approch for an application development. What's the best approach to minimize the number of views that are generated for an application? For instance, say that each contoller represents a functionality within the system that requires add view edit delete Then for each of the above, the following 9 views would be needed Quote: If there are 10 functions in the system, that means a total of 10 functions times 9 views which gives 90 views. Ofcourse this becomes unrealistic as the more the application increases in functionality, the greater the number of views. Yet most of these views display form fields. The other option would be to use Codeigniters form helper and create form tags within controllers, so that there are standard views for Add Confirmation View Edit Confirmation Delete Confirmation However, the problem then becomes almost the same, whereby the contollers become so extensive/long because they are now holding form fields for add/edit/view/delete and moreso, formatting output with html becomes a bit restricted, such as embedding fields in a table or <DIV> layout which can then have css applied to it. So, what's the best/recommended way to implement views?
[eluser]siubie[/eluser]
hmmh some one already ask same qestion before http://ellislab.com/forums/viewthread/157868/ |
Welcome Guest, Not a member yet? Register Sign In |