Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 3 Ответов
  • 1439 Просмотров
*

Роман

  • Осваиваюсь на форуме
  • 20
  • 0 / 0
Здравствуйте! Хочу установить joomleague 1.6 на Joomla 1.6.6 но выдаёт ошибку-Fatal error: Cannot make static method JModel::getInstance() non static in class JLGModel in /var/www/u0010349/data/www/fifacup.pro/components/com_joomleague/assets/classes/jlgmodel.php on line 18 помогите разобраться как установить.

Код
<?php
/**
 * @copyright Copyright (C) 2006,2007,2008,2009,2010 JoomLeague.net. All rights reserved.
 * @license GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

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

class JLGModel extends JModel
{
/**
* Overrides method to try to load model from extension if it exists
*/
function &getInstance( $type, $prefix = '', $config = array() )
{
$extensions = JoomleagueHelper::getExtensions(JRequest::getInt('p'));

foreach ($extensions as $e => $extension) {
$modelType = preg_replace('/[^A-Z0-9_\.-]/i', '', $type);
$modelClass = $prefix.ucfirst($modelType).ucfirst($extension);
$result = false;

if (!class_exists( $modelClass ))
{
jimport('joomla.filesystem.path');
$path = JPath::find(
JModel::addIncludePath(),
JModel::_createFileName( 'model', array( 'name' => $modelType))
);
if ($path)
{
require_once $path;

if (class_exists( $modelClass ))
{
$result = new $modelClass($config);
return $result;
}
}
}
else {
$result = new $modelClass($config);
return $result;
}
}
$instance = parent::getInstance($type, $prefix, $config);
return $instance;
}
}
« Последнее редактирование: 31.05.2014, 21:22:04 от Роман »
*

Роман

  • Осваиваюсь на форуме
  • 20
  • 0 / 0
Ребята, тему можно закрыть, разобрался что к чему)
*

tranceRoller

  • Захожу иногда
  • 452
  • 37 / 0
Ребята, тему можно закрыть, разобрался что к чему)
В таких случаях лучше делиться решением проблемы.
*

Роман

  • Осваиваюсь на форуме
  • 20
  • 0 / 0
да, сорри) Я просто установил joola 1.5 и всё пошло.
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Адаптация joomleague 3 под мобильную версию

Автор DragonbyKuzya

Ответов: 0
Просмотров: 1755
Последний ответ 05.03.2019, 11:57:49
от DragonbyKuzya
Ошибка Joomla\CMS\Form\Form::getInstance() could not load file

Автор vladimir86

Ответов: 0
Просмотров: 2105
Последний ответ 08.02.2019, 10:27:47
от vladimir86
JoomLeague Module Matches предупреждение JFolder::folder:

Автор vladimir86

Ответов: 2
Просмотров: 1889
Последний ответ 02.01.2019, 11:04:00
от vladimir86
Всего стало по два после обновления до joomleague 3.0.22

Автор eu4ria

Ответов: 2
Просмотров: 2112
Последний ответ 29.12.2018, 05:11:32
от vladimir86
Работает ли joomleague на Joomla 3x?

Автор AlucarD

Ответов: 9
Просмотров: 4873
Последний ответ 06.10.2018, 13:12:20
от DragonbyKuzya