model loads fine:
/**
* Broadcasts
* @access private
*/
function broadcasts() {
$user_id = $this->Auth->user('id');
$pageTitle = __d('dashboard', 'broadcasts', true);
$team_ids = $this->TeamsUser->getTeamIds($user_id);
$user_ids = $this->Friend->getFriendIds($user_id, true);
$broadcasts = $this->paginate('Broadcast', array(
'OR' => array(
'Broadcast.user_id IN ('. implode(',', $user_ids) .')',
'Broadcast.team_id IN ('. implode(',', $team_ids) .')'
)
));
$this->pageTitle = $pageTitle;
$this->set('pageTitle', $pageTitle);
$this->set('dashTab', 'overview');
$this->set('broadcasts', $broadcasts);
}
--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment