Driver og lager min første modul, men sliter med en feilmelding som oppstår når jeg forsøker å installere den.
JInstaller: :Install: SQL File not found /home/andreas/html/joomla/modules/mod_bonzaiivideo/sql/install.sql
Module Install: SQL error file DB function reports no errors
Zip-filen inneholder:
helper.php
index.html
mod_bonzaiivideo.xml
mod_bonzaiivideo.php
tmpl/default.php
tmpl/index.html
sql/install.sql
sql/uninstall.sql
Mod_bonzaiivideo.xml inneholder følgende
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="2.5.0" client="site" method="upgrade">
<name>Bonzaii video</name>
<author>Bonzaii</author>
<version>1.0.0</version>
<description>HTML5 Video</description>
<install>
<sql>
<file driver="mysql" charset="utf8">sql/install.sql</file>
</sql>
</install>
<uninstall>
<sql>
<file driver="mysql" charset="utf8">sql/uninstall.sql</file>
</sql>
</uninstall>
<files>
<filename>mod_bonzaiivideo.xml</filename>
<filename module="mod_bonzaiivideo">mod_bonzaiivideo.php</filename>
<filename>index.html</filename>
<filename>helper.php</filename>
<filename>tmpl/default.php</filename>
<filename>tmpl/index.html</filename>
</files>
<config>
<fields name="params">
<fieldset name="basic">
<field name="lang" type="sql" default="1" label="Select a language" query="SELECT id AS value, lang FROM #__helloworld" />
</fieldset>
</fields>
</config>
</extension>
Er takknemlig for hjelp!