On Mon, Mar 24, 2008 at 9:46 PM, George C <[EMAIL PROTECTED]> wrote:
>
> Looking at the index function that bake created for me, I see the
> cryptic:
>
> function index() {
> $this->Client->recursive = 0;
> $this->set('clients', $this->paginate());
> }
>
> and unfortunately, it's as clear as mud to me as to how that actually
> works, and I can't find a good discussion of what it's doing, so I
> can't figure out how to get my data from $flattened back to the view.
> Can anyone tell me where I can find a good discussion of how to get
> this to work? Thanks in advance.
That example is for doing pagination. Ignore it for now.
Passing data to a view is simple.
$this->set('flattened' ,$flattened)
will pass what's in $flattened to the view, where you can access it as
$flattened.
I suggest going through the cookbook, as it is explained there.
http://book.cakephp.org/view/58/interacting-with-views
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@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
-~----------~----~----~----~------~----~------~--~---