Current Path :
/
home
/
develito
/
www
/
components
/
com_faqbookpro
/
controllers
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/www/components/com_faqbookpro/controllers/topic.php
<?php /** * @title Minitek FAQ Book * @copyright Copyright (C) 2011-2020 Minitek, All rights reserved. * @license GNU General Public License version 3 or later. * @author url https://www.minitek.gr/ * @developers Minitek.gr */ defined('_JEXEC') or die; jimport('joomla.application.component.controller'); class FAQBookProControllerTopic extends JControllerLegacy { public function getContent() { // Get input $app = JFactory::getApplication(); $input = $app->input; // Get variables $id = $input->get('id', '', 'INT'); $tab = $input->get('tab', 'recent', 'STRING'); $page = $input->get('page', '1', 'INT'); $filter = $input->get('filter', '', 'STRING'); // Set variables $input->set('view', 'topic'); $input->set('id', $id); $input->set('tab', $tab); $input->set('filter', $filter); // Set layout if ($page > 1) { $layout = 'questions'; } else { $layout = 'topic'; } $input->set('layout', 'default_'.$layout); // Display parent::display(); // Exit $app->close(); } }