public function maintainer_info() { $this->m = Maintainer::find_by_name($_GET['name']); }
protected function _getUnlisted($user = '******') { $_action = 'following'; $following = $this->find('users', compact('user', '_action')); ClassRegistry::init('Maintainer'); $maintainer = new Maintainer(); $maintainers = $maintainer->find('list', array('fields' => array('username'))); $maintainers = array_values($maintainers); foreach ($following['Users']['User'] as $key => &$user) { if (in_array($user, $maintainers)) { unset($following['Users']['User'][$key]); } } return $following['Users']['User']; }