In your component, try this: <?php class RecentPapersComponent extends Object { var $name = 'RecentPapers'; var $controller = true;
function init ($number = 5) { $Paper = new Paper; $data = $Paper->findAll ( null, null, 'Paper.modified DESC', $number ); pr($data); // This is where it will spit out the contents of the data. If you don't see anything, then you may have nothing in your database. $this->controller->set('recentpapers',$data); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---