HOW TO change component name Joomla

人走茶凉 提交于 2019-12-11 10:24:53

问题


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:


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...



来源:https://stackoverflow.com/questions/21766376/how-to-change-component-name-joomla

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!