如何更改组件名称 Joomla [英] HOW TO change component name Joomla

查看:13
本文介绍了如何更改组件名称 Joomla的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣重命名一个 joomla 组件:

I'm interested to rename a joomla component from:

index.php?option=com_test&view=

index.php?option=com_testest&view=.

我该怎么做?

推荐答案

我不知道(目前)有一个自动化的解决方案来做到这一点.也许其他人会.

I don't know (yet) of an automated solution to do this. Maybe somebody else does.

组件的名称出现在不同的地方(类、文件和文件夹名称、数据库等).因此,您必须重命名(这可能不是完整列表)

The name of the component occurs in various places (class, file and folder names, the database and so on). Thus, you'd have to rename (this might not be a complete list)

  • 基本文件夹 com_yourname
  • 包含组件名称的所有文件名(yourname.php 等)
  • 包括组件名称在内的所有目录名称(如果您想避免与默认视图名称混淆)
  • 文件中所有出现的组件名称(即主要是 PHP 类名称)
  • 保存组件名称的数据库条目
  • 不要忘记指向您的组件的所有链接.

您可能要考虑创建一个新组件并只复制重要内容...

You might want to consider creating a new component and just copying the important contents...

这篇关于如何更改组件名称 Joomla的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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