|
I make controllers that are not directly related to a database model
frequently. In the controller: var $uses = null; Quick search for "controller without a model" yielded many relevant results, including: http://groups.google.com/group/cake-php/browse_thread/thread/f9965004e2f3efc2/3d7ab42256be8dfd?lnk=gst&q=controller+without+a+model&rnum=1#3d7ab42256be8dfd You will find that people will usually answer your questions here, but please search the group first, as it will save YOU time and help keep the community from stagnating with redundant questions. jmartyniak wrote: So kind of the first point is that it seems that every controller needs a model in able to do something, and that model must be related to a database table.So how do you go about creating functions that may or may not be related to a table or at least not related to the model that you are working on, where there may or may not be a database table related to the screen that you are developing? For example a content management system, where you might relate data to the page type (/user/view) but not directly to the user information, that you are viewing, and the corresponding model is related to the user table. This would apply to really any function, that is not directly related to a DB table, or if the table that you are working with does not have a direct relationship to a table that you need to update. Any thoughts would be greatly appreciated. -John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- Models not related to db? jmartyniak
- Re: Models not related to db? Joshua Benner
