/**
  * Show the HomeLet Verify page - used to be CheckRight
  */
 public function homeletVerifyAction()
 {
     $agent = new Datasource_Core_AgentUser();
     $canDisplayCheckRight = $agent->canDisplayCheckRight($this->_agentSchemeNumber, $this->_agentUserName);
     if (!$canDisplayCheckRight) {
         throw new Zend_Controller_Action_Exception('Page not found', 404);
     }
     $this->view->phoneNumber = $this->_params->connect->settings->checkRight->phoneNumber;
     $this->view->blogUrl = $this->_params->connect->settings->checkRight->blogUrl;
     $this->view->faqsUrl = $this->_params->connect->settings->checkRight->faqsUrl;
     $this->view->homeOfficeUrl = $this->_params->connect->settings->checkRight->homeOfficeUrl;
     $this->view->checkUrl = $this->_params->connect->settings->checkRight->checkUrl;
 }
 /**
  * Index action
  *
  * @return void
  */
 public function indexAction()
 {
     /** @var \Desarrolla2\Cache\Cache $cache */
     $cache = $this->getContainer()->get('iris.notifications_cache');
     $cacheKey = sha1($this->_agentSchemeNumber . 'notifications');
     // Get notifications (from cache is available)
     if ($cache->has($cacheKey)) {
         $reportNotifications = $cache->get($cacheKey);
     } else {
         try {
             $reportNotifications = $this->getIrisAgentContext()->getReferencingApplicationClient()->getReportNotifications();
         } catch (DefaultException $e) {
             $reportNotifications = array();
         }
         $cache->set($cacheKey, $reportNotifications);
     }
     $agent = new Datasource_Core_AgentUser();
     $canDisplayCheckRight = $agent->canDisplayCheckRight($this->_agentSchemeNumber, $this->_agentUserName);
     $this->renderTwigView('/iris-referencing/index.html.twig', array('rentAffordabilityForm' => $this->_getRentAffordabilityForm()->createView(), 'reportNotifications' => $reportNotifications, 'canDisplayCheckRight' => $canDisplayCheckRight, 'agentSchemeNumber' => $this->_agentSchemeNumber, 'disabledNewReferenceList' => array(1508996, 1506765, 1507004, 1507005, 1507006, 1507007, 1507008, 1507009, 1507010, 1507011, 1507012, 1507013, 1507014, 1508250, 1509271, 1510027, 1512889, 1507015, 1507016, 1508284, 1513311, 1513353, 1513354, 1513355, 1513356, 1513357, 1513358, 1513359, 1513360, 1513361)));
 }