Render article's body.
@param integer $id
@param boolean $renderPartial if true ignore visibility and show without layout by call renderPartial()
962769
public function actionView($id, $renderPartial = false)
    {
        $modelNews = $this->module->model('News');
        $model = $modelNews::findOne($id);

        $modelI18n = false;
        if (!empty($model)) {
            $modelsI18n = $modelNews::prepareI18nModels($model);
            $modelI18n = $modelsI18n[$this->langCodeMain];
        }

        $searchModel = $this->module->model('NewsSearchFront');
        if ($renderPartial) {
            $model = $searchModel::canShow($model, $modelI18n, $ignoreVisibility = true);
        } else {
            $model = $searchModel::canShow($model, $modelI18n);
        }
        if (!$model) {
            $modelI18n = false;
        }

        if ($renderPartial) {
            return $this->renderPartial('view', compact('model', 'modelI18n'));
        } else {
            return $this->render('view', compact('model', 'modelI18n'));
        }
    }
1152835
public function getArticleBodyById(string $id): Generator
    {
        yield from $this->sendCommand(new Command('BODY', $id));
        return yield from $this->encoder->readData($this->stream);
    }
1144655
public function viewAction($id)
    {
        $gallery = $this->get('sonata.media.manager.gallery')->findOneBy([
            'id' => $id,
            'enabled' => true,
        ]);

        if (!$gallery) {
            throw new NotFoundHttpException('unable to find the gallery with the id');
        }

        return $this->render('@SonataMedia/Gallery/view.html.twig', [
            'gallery' => $gallery,
        ]);
    }
1016162
public function actionFrontend ($id)
		{
			$page = Page::find()->where([ 'guid' => $id ])->one();

			if ($page === null)
			{
				throw new \yii\web\HttpException(404);
			}
			$this->setTitle($page->title);
			$this->data('page', $page);
			$this->_tpl = '@pageViews/page';
		}
1294426
public function renderByIdAction($id, $path = '')
    {
        /**
         * @var PageInterface $page
         */
        $page = $this
            ->pageRepository
            ->findOneById($id);

        return $this
            ->pageResponseTransformer
            ->createResponseFromPage(
                $page,
                $path
            );
    }
319147
public function updatePartials(int $articleId, array $data): ArticleInterface
    {
        $this->shopware()->put('/api/articles/' . $articleId, [], $data);

        return $this->find($articleId);
    }
80187
public function show($id, Request $request)
    {
        /** @var Article $article */
        $article = Article::query()->findOrFail($id);
        $article->visited();

        $template = $request->get('tmpl', 'master');

        event(new ArticleWasViewed($article));

        return view($article->getTemplate(), compact('article', 'template'));
    }
319555
public function render(Renderable $renderable, $render = null)
	{
		$render = $this->renderProvider->get($render);

		return $render->render($renderable);
	}
982393
public function showAction($id, $extra) {
        $entity = $this->container->get("template_page.read_handler")->get($id);

        $template = str_replace(":show.html.twig", ":display.html.twig", $this->container->get("request")->get('_template'));

        $params = array(
            "entity" => $entity
            , "extra" => $extra
        );

        return new Response($this->container->get('templating')->render($template, $params));
    }
103379
public function show($id, Content $content)
    {
        return $content
            ->header(trans('admin.permissions'))
            ->description(trans('admin.detail'))
            ->body($this->detail($id));
    }
758302
public function renderContent($name, $id)
    {
        if ($column = $this->getColumn($name)) {
            $column->render($id);
        }
    }
937614
public function viewAction($id)
    {
        $content = $this->contentManager->getContentById($id);

        if ($content === null) {
            throw EntityNotFoundException::fromClassNameAndIdentifier(
                $this->configurationManager->getEntityClass('content'),
                [$id]
            );
        }

        return $this->render('@SherlockodeAdvancedContent/Content/view.html.twig', [
            'content' => $content,
        ]);
    }
630472
public function renderAdd(int $id = null): void
	{
		$this['editForm']->setDefaults([
			'locale' => $this->localeService->defaultLocaleId,
			'parent' => $id
		]);
		$this->setView('edit');
		$this->template->viewLinks = false;
	}
817277
public function setBodyPart($id, $text, $decode = null)
    {
        $this->_data[Horde_Imap_Client::FETCH_BODYPART][$id] = array(
            'd' => $decode,
            't' => $this->_setMixed($text)
        );
    }
604313
public function getPostEditPost($id)
    {
        $form = new EditPostForm($this->di, $id);
        $form->check();

        $views = [
            ["comment/default-form", ["form" => $form->getHTML()], "main"]
        ];

        $this->di->get("pageRenderComment")->renderPage([
            "views" => $views,
            "title" => "Edit post | $id"
        ]);
    }
426753
public function renderView(JsUtils $js,$initialController,$viewName, $params=array()) {
		return $this->setContent($js->renderContent($initialController, $viewName,$params));
	}
453158
public function actionView($id) 
	{
		$model=$this->loadModel($id);

		$this->pageTitle = Yii::t('phrase', 'Detail Banner: {title}', array('{title}'=>$model->title));
		$this->pageDescription = '';
		$this->pageMeta = '';
		$this->render('admin_view', array(
			'model'=>$model,
		));
	}