致命错误:在xxx行的template/theme/index.php中找不到类'JParameter' [英] Fatal error: Class 'JParameter' not found in template/theme/index.php on line xxx

查看:88
本文介绍了致命错误:在xxx行的template/theme/index.php中找不到类'JParameter'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将模板2.5升级到3.0,但模板升级却出现以下错误.

i upgrade template 2.5 to 3.0, template upgrade but come the following error.

严重错误:在xxx行的template/theme/index.php中找不到类'JParameter'

推荐答案

JParameter在Joomla 3.0中已删除,现在应该使用JForm或大多数情况下使用JRegistry.

JParameter was removed in Joomla 3.0 and now either JForm or in most cases JRegistry should be used.

因此,请使用以下代码,并进行更改以适合您自己的需求

So use the following code, and change to suit your own needs

$jparams = new JRegistry();
$variable = $jparams->get('param_name');

这篇关于致命错误:在xxx行的template/theme/index.php中找不到类'JParameter'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆