public function indexAction()
 {
     $model = new Application_Model_PropertyMapper();
     $properties = $model->fetchByIds(Misc_Utils::getFavorites()->getArrayCopy());
     $count = count($properties);
     if ($count) {
         $this->view->count = $count;
         $this->view->properties = $properties;
     } else {
         $this->renderScript('my-favorites/no-results.phtml');
     }
 }
 public function testingAction()
 {
     $this->view->layout()->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     echo 'Testing <br/>';
     $session = new Zend_Session_Namespace('favorites');
     echo '<pre>' . print_r($session, true) . '</pre>';
     $session->setExpirationSeconds(2592000);
     $session->favorites = new ArrayObject(array());
     die('<pre>' . print_r($session->favorites, true) . '</pre>');
     $results = Misc_Utils::getFavorites();
     echo '<pre>' . print_r($results, true) . '</pre>';
     return true;
 }