芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/testcors.sdektun.com/components/com_banners/src/Controller/DisplayController.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Banners\Site\Controller; use Joomla\CMS\MVC\Controller\BaseController; \defined('_JEXEC') or die; /** * Banners Controller * * @since 1.5 */ class DisplayController extends BaseController { /** * Method when a banner is clicked on. * * @return void * * @since 1.5 */ public function click() { $id = $this->input->getInt('id', 0); if ($id) { /** @var \Joomla\Component\Banners\Site\Model\BannerModel $model */ $model = $this->getModel('Banner', 'Site', array('ignore_request' => true)); $model->setState('banner.id', $id); $model->click(); $this->setRedirect($model->getUrl()); } } }