src/articles/classes/Controller/Client/Content.php
private function actionView()
    {
        /** @var Articles_Entity_Article $article */
        $article = ORM::getTable($this->getPlugin(), 'Article')->find($this->getPage()->topic);
        if (null === $article || false === $article->active)
        {
            $this->getPage()->httpError(404);
        }

        $this->getPage()->section []= $article->caption;

        $this->addToPath($article);

        $vars = array(
            'settings' => $this->getPlugin()->settings,
            'page' => $this->getPage(),
            'article' => $article,
        );
        $tmpl = $this->getPlugin()->templates()->client('Article.html');
        $html = $tmpl->compile($vars);
        return $html;
    }
private function actionView()
    {
        /** @var Articles_Entity_Article $article */
        $article = ORM::getTable($this->getPlugin(), 'Article')->find($this->getPage()->topic);
        if (null === $article || false === $article->active)
        {
            $this->getPage()->httpError(404);
        }

        $this->getPage()->section []= $article->caption;

        $this->addToPath($article);

        $vars = array(
            'settings' => $this->getPlugin()->settings,
            'page' => $this->getPage(),
            'article' => $article,
        );
        $tmpl = $this->getPlugin()->templates()->client('Article.html');
        $html = $tmpl->compile($vars);
        return $html;
    }
Отрисовка статьи

@return string

@since 3.01