foreach ($useringorups as $values) { $this->loadModel('Group'); $Notifications = $this->Group->find('all', array( 'conditions' => array( 'Notification.projectid' => $values['useringorups ']['groupid'], ) )); }
foreach ($useringorups as $values) { $this->loadModel('Group'); $Notifications = $this->Group->find('all', array( 'conditions' => array( 'Notification.projectid' => $values['useringorups ']['groupid'], ) )); }