【发布时间】:2011-10-14 01:33:06
【问题描述】:
在 joomla 安装之前如何运行测试组件编码? 例子: 通常我们会创建 install.xml, test.php ..
如何测试?
【问题讨论】:
标签: joomla components
在 joomla 安装之前如何运行测试组件编码? 例子: 通常我们会创建 install.xml, test.php ..
如何测试?
【问题讨论】:
标签: joomla components
要测试什么?您想在不安装的情况下测试组件吗?不确定是否可行,但您可以尝试在浏览器地址行中写入此内容
index.php?option=com_newcomponent
并使用文件newcomponent.php 创建文件夹components/newcomponent/。
如果您想编写新组件但不想手动编写install.php,我建议您使用this extention。使用 easyCreator,您可以使用预定义的模板轻松创建组件/模块/插件。新的扩展将自动安装。当您完成扩展程序的开发后,您可以下载安装包以将其传输到其他站点。
对不起,英语搞砸了:)(顺便说一句,怎么样?:))我试图澄清。我希望它会有所帮助。
【讨论】:
/components/newcomponent/,创建文件/components/newcomponent/newcomponent.php 并点击链接http://www.site.com/index.php?option=com_newcomponent。这应该有效。