安装
开发者注意
安装您的自定义脚本
如果您有权访问 Web 应用程序的文件系统,那么您当然可以将脚本复制到您选择的文件夹中。
如果您想以通常的方式安装脚本,则必须在清单文件中使用“file”作为扩展类型,例如。
<?xml version="1.0" encoding="utf-8"?>
<extension type="file" version="5.1" method="upgrade">
<name>Custom Script</name>
<version>1.0</version>
<description>Script to count the number of articles in the database</description>
<fileset>
<files target="cli">
<filename>myscript.php</filename>
</files>
</fileset>
</extension>
安装它将导致脚本“myscript.php”被放入 Joomla cli
目录。