What to do next? Packing and installing the module

Packing is the end part of our little module project. After packing the module, we will be able to use our module in every project very easily. This process is quite easy; just ZIP all the files and folders inside our modules/mod_littlecontact folder, so we will have the following structure:

mod_littlecontact.zip
            − css
            − styles.css
            − js
            − littlecontact.js
            − tmpl
            − default_tmpl.php
            − sendok_tmpl.php
            − helper.php
            − index.html
            − mod_littlecontact.php
            − mod_littlecontact.xml
        

But before trying to install our module, we will uninstall our previous installation, so that we can check if the installation process has gone OK.

Go to the administrator page, then Extensions | Install/Uninstall | Modules, and on that screen look for mod_littlecontact. Select it and click on the Uninstall button.

Well we have just uninstalled the module, so we can now install it again with our new ZIP file. Go to Extensions | Install/Uninstall, select the file, and click on the Upload File & Install button.

And that's all; this module will be available for us every time we need it.

Note

Having problems with the installation? If the installation seems to be unable to complete, you could try the following:

  • Check your XML file, to ensure it's correct.
  • Check your FTP configuration, to ensure it's correct. This can be done on Site | Global Configuration | Server.
  • Disable FTP in the previous screen.
  • Instead of using the ZIP compression format, compress to tar.gzip.
  • Give 777 permissions to the modules folder.
  • Try to upload the module and install using install from URL or from directory.

Hopefully, one of these options will work and solve any possible problems.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.32.222