I have been going over trac tickets and google searches for 2 hours, I
cannot get this to work.

$limit = 5;
$order = 'Company ASC';
$fields = array('Exhibitor.Company', 'Exhibitor.City',
'Exhibitor.State', 'Exhibitor.Booth', 'Exhibitor.Product',
'Exhibitor.Url');
$this->paginate = array('conditions' => $conditions, 'limit' =>
$limit, 'order' => $order, 'fields' => $fields);
$this->Exhibitor->contain();
$this->set('results', $this->paginate('Exhibitor'));

The contain() works just fine if using a find().

If I try to do:
$this->set('results', $this->paginate('Exhibitor', array('contain' =>
array('Exhibitor')))); I get:
Unknown column 'contain' in 'where clause'

Please provide some direction on this one.  Thanks much for your time.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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