On Jun 23, 6:00 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > Unless the views are quite different between cities, definitely use a > single view file. > > In MVC your controller should load whatever data is appropriate for > the request, and the view just renders that data (into HTML, or RSS, > or JSON, or whatever particular format the request needs). In what > you have mentioned it just sounds like the data loaded will be > different, but the display of that data will be pretty much the same. > Even small view changes should still be done in just a single view > file - you don't want duplicated functionality if you can avoid it.
Thank you very much for your reply Grant. I understand what you are saying, it would be the best idea to simply create a "users" type view for all the users. Although, I will have variables in the user file for things like "show thread where user_location_id=city_id" Would that be the best way to get information for each particular city/state without putting to much strain on the server? Thank you again. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
