Skip to content

Instantly share code, notes, and snippets.

@basz
Created June 21, 2012 08:46
Show Gist options
  • Select an option

  • Save basz/2964632 to your computer and use it in GitHub Desktop.

Select an option

Save basz/2964632 to your computer and use it in GitHub Desktop.
public function execute(\Zend\Mvc\MvcEvent $e)
{
/**
* @var \Application\Service\SiteService
*/
$this->site = $this->getServiceLocator()->get('Application/Service/Site');
$this->layout()->setVariable('siteDomain', strtolower($this->site->getDomain()));
$this->layout()->setVariable('nextDomainUri', $this->site->getDomainUri($this->site->getNextAvailableDomain()));
parent::execute($e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment