On 2/27/07, nate <[EMAIL PROTECTED]> wrote:
>
> $scope is filtering criteria, and $whitelist is a list of allowed
> parameters.
Thanks for trying to explain, Nate. However, since i'm very new to
CakePHP i can't figure out what would be the purpose of these
"allowed parameters". :-D
> $object is interpreted as $scope if it is an array, since by default,
> the $object parameter is not required.
So, the filter criteria should normally be passed as the $scope. In
this case what is $object meant for ?
I find that the API documentation is too minimal (it seems to be
generated from sources and sometimes the explainations are
not verbose enough).
But this is compensated by the people on this group who are very
nice and willing help. :)
I'm very happy that i found this google group to post my questions : it's
easier to get answers here than on the irc channel where sometimes there
are several conversations taking place at the same time and it's hard
to follow,
Thanks,
Adrian Maier
> On Feb 27, 2:28 am, "Adrian Maier" <[EMAIL PROTECTED]> wrote:
> > On 2/27/07, Grant Cox <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Just pass your conditions as the first parameter to your paginate
> > > function.
> >
> > > $your_conditions = array('session_id'=>$session_id);
> > > $this->set( 'importData', $this->paginate($your_conditions) );
> >
> > Thanks, I'll try this.
> >
> > The funny thing is that I had looked at the paginate() function in
> > the API, but I couldn't figure out by myself what is the meaning
> > of its parameters:
> > mixed $object
> > mixed $scope
> > array $whitelist
> >
> > I am wondering how is someone supposed to guess that the $object
> > is actually an array that defines the filtering criteria for the query.
> >
> > The other two parameters : $scope and $whitelist are still puzzling
> > me. What are they?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---