getIdentity(); $db = Zend_Registry::get('db'); $prefs = new Application_Model_Prefs($db); $sql = $prefs->select()->where('login = ?', $user->username); $this->view->entries = $prefs->fetchAll($sql); } }