Are you sure you have content in that table? (although it'd normally
return an empty array rather than false but something to think about)
Secondly, maybe use a different variable besides $data. It shouldn't
matter but I'd be likely to try it anyway.
On Wed, Jul 9, 2008 at 8:57 AM, AussieFreelancer
<[EMAIL PROTECTED]> wrote:
>
> hi all, i have spent some stupid hours on this, and still cant work
> out what is going on...
>
> I have this code:
>
> var $paginate = array(
> 'AcumarcBuilding' => array(
> 'limit' => 25,
> 'order' => array(
> 'AcumarcBuilding.id' => 'asc'
> )
> )
> );
>
> then:
>
> $data = $this->paginate('AcumarcBuilding');
> $this->set(compact('data'));
>
> but, the variable $data in the view, is a boolean and is set to false.
> What is going on?? This is the second controller that has done this
> now, and need to get this sorted urgently :( Any help would be greatly
> appreciated.
>
> Thanks
>
> Patrick
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---