File: /var/www/vhosts/pgkdistribution.com.au/citisolar.com.au/components/com_fst/views/fst/view.html.php
<?php
/**
* @package Freestyle Joomla
* @author Freestyle Joomla
* @copyright (C) 2013 Freestyle Joomla
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
jimport( 'joomla.application.component.view');
jimport('joomla.utilities.date');
class FstViewFst extends JViewLegacy
{
function display($tpl = null)
{
$mainframe = JFactory::getApplication();
$option = JRequest::getVar('option');
if ($option == "com_fst")
{
$link = FSTRoute::_('index.php?option=com_fst&view=test',false);
} else if ($option == "com_fsf")
{
$link = FSTRoute::_('index.php?option=com_fst&view=faq',false);
} else {
$link = FSTRoute::_('index.php?option=com_fst&view=main',false);
}
$mainframe->redirect($link);
}
}