/** * @return BasePathHelper */ protected function getBasePathHelper() { if (null === $this->basePathHelper) { $renderer = $this->getView(); if (method_exists($renderer, 'plugin')) { $this->basePathHelper = $renderer->plugin($this->defaultBasePathHelper); } if (!$this->basePathHelper instanceof BasePathHelper) { $this->basePathHelper = new BasePathHelper(); $this->basePathHelper->setBasePath('/'); $this->basePathHelper->setView($this->getView()); } } return $this->basePathHelper; }