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

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

问题描述

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

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

致命错误:在 xxx 行的模板/主题/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 行的模板/主题/index.php 中找不到类“JParameter"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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