HOW TO change component name Joomla

2019-08-09 04:10发布

I'm interested to rename a joomla component from:

index.php?option=com_test&view= to

index.php?option=com_testest&view=.

How can I do it?

1条回答
2楼-- · 2019-08-09 04:13

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)

  • the base folder com_yourname
  • all filenames which include the component name (yourname.php etc.)
  • all directory names including the component name (if you want to avoid confusion with the default view names)
  • all occurrences of the component name in your files (that is, mainly, PHP class names)
  • the database entry holding your component name
  • not to forget all links pointing to your component.

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

查看更多
登录 后发表回答