PACKAGING THE EXTENSION

Extensions are package into mvc structure (i.e Model, View, Controllers) along with the sql, cron and importer file.

The structure of the package are shown below:

 Package folders

 Package Dummy folder

copy_dir is use to copy the entier directory from the package to the modules folder WManager

syntax: (copy_dir, dummy/, application/modules/dummy)

sql is use to run the database queries

syntax: (sql, file.sql, sql/)

mkdir is use to create the directory in the specified location syntax: (mkdir, cm, assets/uploads/)

cron_file is use to create the directory in the specified location syntax: (cron_file, test.php, cron/)

Extension dummy folder should contain the following:

Package should be compressed in .zip file with the extension name

Back to: dev extensions