joomla 扩展 zip 然后卸载然后安装
我一直在编写自己的 joomla 扩展,我发现我所做的每一项更改都很烦人,我必须再次压缩我的包,然后卸载旧的包,然后安装我的新包。我知道我可以在 joomla 目录中编辑,但是有更好的方法吗?有人已经写过一些东西来解决这个问题吗?谢谢
这是 Joomla 1.5
I have been writing my own joomla extension and I am finding it annoying that every change I make, I have to zip my package up again, then uninstall the old one, then install my new package. I know I can edit in the joomla directory but is there a better way? Has someone already written something to take care of this? Thank you
This is Joomla 1.5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以安装一次扩展,然后可以更改扩展文件中的代码。您不需要卸载或再次安装它。
或者
在扩展安装程序的 XML 文件中使用
这行代码。然后您无需卸载扩展,只需将其安装在现有扩展上即可。它将用新的文件覆盖已安装的扩展文件。You can install your extension once and then can make changes in code in files of your extension. You need to not to uninstall or install it again.
Or
use
<install type="component" version="1.5.0" method="upgrade">
this line of code in XML file of your extension installer. Then you need not to uninstall the extension, just install it over existing. It will over-write the files of installed extension with new one.安装组件后,Joomla 会将组件文件放在正确的目录中。如果您在本地运行 Joomla,您只需将这些文件替换为通过 FTP 或本地计算机上所做更改的文件。
Once your component is installed Joomla puts your component files in the correct directories. You just need to replace those files with the ones you have made changes on either via FTP or on your local computer if you have Joomla running locally.