On 6/4/07, JDS <[EMAIL PROTECTED]> wrote:
> See, this one line, "Your FragglesController will automatically load
> $this->Fraggle," is the only place that I have seen in the manual that
> says how the controller gets access to the model. But it seems like
> this very imortant information should be stated more explicitly
> somewhere.  Is it? Am I missing it?
>

Directly from the manual (and above the text you quoted)
**********
First, getting data from a controller is simple. You just use
requestAction in the view where you need the data.
// Here is our simple controller:

class UsersController extends AppController
{
    function getUserList()
    {
        return $this->User->findAll();
    }
}
**********

So, reading this I think you can assume that it is talking to a User
model.  Perhaps I am making an assumption that is not valid.

I highly recommend that people go to the bakery (bakery.cakephp.org)
when they want to see good examples of CakePHP code, both 1.1 and 1.2


-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to