b0y-101 Mini Shell


Current Path : E:/www/instructor/test01/administrator/components/com_eventgallery/controllers/
File Upload :
Current File : E:/www/instructor/test01/administrator/components/com_eventgallery/controllers/file.raw.php

<?php
/**
 * @package     Sven.Bluege
 * @subpackage  com_eventgallery
 *
 * @copyright   Copyright (C) 2005 - 2019 Sven Bluege All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

jimport( 'joomla.application.component.controllerform' );

/** @noinspection PhpUndefinedClassInspection */
class EventgalleryControllerFile extends JControllerForm
{

    protected function postSaveHook(\JModelLegacy $model, $validData = array())
    {

        if ($this->task == 'apply')
        {
            $this->setRedirect(JRoute::_('index.php?option=com_eventgallery&view=file&layout=edit&tmpl=component&format=raw&id='.$this->input->getInt('id') . $this->getRedirectToListAppend(), false));
        }

        if ($this->task == 'save')
        {
            $this->setRedirect(JRoute::_('index.php?option=com_eventgallery&view=file&layout=content&tmpl=component&format=raw&id='.$this->input->getInt('id') . $this->getRedirectToListAppend(), false));
        }
    }


}

Copyright © 2019 by b0y-101