* @copyright Copyright (C) 2026 Moko Consulting. All rights reserved. * @license GNU General Public License version 3 or later; see LICENSE * SPDX-License-Identifier: GPL-3.0-or-later */ namespace Joomla\Component\MokoSuiteCross\Site\View\Post; defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView; class HtmlView extends BaseHtmlView { protected $article; protected $posts; public function display($tpl = null): void { $articleId = Factory::getApplication()->getInput()->getInt('id', 0); $model = $this->getModel(); $this->article = $model->getArticle($articleId); $this->posts = $model->getPosts($articleId); parent::display($tpl); } }