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'); } }