/** * Get the content from a normal view that was executed before. * @param string $contentId */ public function useContent($contentId) { $content = ''; if ($this->view != null) { $contents = $this->view->getContents(); $content = $contents->get($contentId); if ($content == null) { $content = ''; } } echo $content; }