I searched the forum before posting, but didn't find an answer to my question. And I am talking about getting the info in the controller, not the view. The API says that I should pass a reference to the model to the describe function, but nothing I pass seems to work. I thought the model is $this-><ModelName> so I passed &$this-><MODELNAME> but it doesn't work. So I assume it's looking for something else. I just don't know what.
On Feb 24, 9:26 am, the_woodsman <[EMAIL PROTECTED]> wrote: > I assume you mean passing a model to a view? > > This is generally discouraged, in favour of getting whatever > information you need from the model in the controller, and passing it > on to the view. > > You'd have to describe your issue more fully, or search the board more > thoroughly - there's plenty of posts on this floating around: someone > very recently was talking about accessing the Model schema in a > Helper... > > On 24 Feb, 15:25, Carl <[EMAIL PROTECTED]> wrote: > > > I guess the real question is what do I pass as a reference to the > > model? I tried passing $this-><Model> and &$this-><Model> and neither > > one works. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
