I have in a controller an array containing data used on the view to populate 
a drop down. I put it on the controller, so the array could be used by 
multiple views associated with that controller (create, edit). Additionally, 
it means that if I do ever have to change it, I just have to change it once 
(yup, lazy).

Because the data is relatively static, and is used in only isolated 
instances, it didn't seem to be worth the effort of creating a model for 
that data, and establishing a relationship between models. And, putting it 
on the controller, worked.

Admittedly, I'm new to MVC, but this really doesn't seem to jive definition. 
Am I doing something wrong?  If so, how would one but this on the model, 
short of some sort of association with another model?


--
J. Mitchell

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to