Saturday, July 23, 2011

multiple views or one massive view

So I am working on a site that would display characters from several different games, many of which share the same types of attributes but just call them differently. I have a variable setup to tell me which game we are currently dealing with so my question is this, do I just have the view contain multiple if statements and set it up like a large switch, or is it possible to have the controller call a different view depending on that variable as would be my preference. Thanks.

~Michael

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate