function showfooter()
 {
     // Get the view name from the query string
     //$viewName = JRequest::getVar( "view", "footer" );
     // Get the view
     //$view = & $this->getView( $viewName );
     // Get the joomleague model
     //$version = $this->getModel( "version", "JoomleagueModel" );
     //$version->set( "_name", "version" );
     /*$footer = $this->getModel( "footer", "JoomleagueModel" );
     		$footer->set( "_name", "footer" );*/
     /*if (!JError::isError( $version ) )
     		{
     			$view->setModel ( $version );
     		}*/
     /*if (!JError::isError( $footer ) )
     		{
     			$view->setModel ( $footer );
     		}
     
     		$view->display();*/
     parent::display();
 }
Example #2
0
 function showfooter()
 {
     parent::display();
 }
 function __construct()
 {
     //echo " - JoomleagueControllerPredictiongame construct";
     parent::__construct();
 }
Example #4
0
<?php

/**
 * Joomleague
 *
 * @copyright	Copyright (C) 2006-2015 joomleague.at. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @link		http://www.joomleague.at
 * 
 * @author		Wolfgang Pinitsch <*****@*****.**>
 */
defined('_JEXEC') or die;
require_once JPATH_ROOT . '/components/com_joomleague/joomleague.core.php';
require_once JPATH_COMPONENT . '/controller.php';
require_once JLG_PATH_SITE . '/helpers/extensioncontroller.php';
// Component Helper
jimport('joomla.application.component.helper');
$controller = JLGController::getInstance('joomleague');
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();
Example #5
0
 private static function getInstanceWithExtensions($prefix)
 {
     $extensionHelper = new JoomleagueHelperExtensioncontroller();
     // Get the environment configuration.
     $format = JRequest::getWord('format');
     $command = JRequest::getVar('task', 'display');
     // Check for array format.
     $filter = JFilterInput::getInstance();
     if (is_array($command)) {
         $command = $filter->clean(array_pop(array_keys($command)), 'cmd');
     } else {
         $command = $filter->clean($command, 'cmd');
     }
     $class = null;
     // Check for a controller.task command.
     // it's the only kind supported for now
     if (strpos($command, '.') !== false) {
         // Explode the controller.task command.
         list($type, $task) = explode('.', $command);
         // Define the controller filename and path.
         $file = self::createFileName('controller', array('name' => $type, 'format' => $format));
         foreach ($extensionHelper->getExtensions() as $extension) {
             if (!($path = $extensionHelper->findFile($file, $extension))) {
                 continue;
             }
             require_once $path;
             $className = ucfirst($prefix) . 'Controller' . ucfirst($type);
             if (class_exists($className)) {
                 $class = $className;
                 break;
             } elseif (class_exists($className . ucfirst($extension))) {
                 $class = $className . ucfirst($extension);
                 break;
             } else {
                 throw new InvalidArgumentException(JText::_('COM_JOOMLEAGUE_WRONG_CLASSNAME_IN_CONTROLLER_FILE'));
             }
         }
         if ($class) {
             // Reset the task without the controller context.
             JRequest::setVar('task', $task);
             self::$instance = new $class();
             return self::$instance;
         }
     }
     return parent::getInstance($prefix);
 }