Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to implement module installation and uninstallation using Zend Framework
    primarykey
    data
    text
    <p>I have a webapplication built using Zend Framework that contains a lot of modules. These modules are all "optional" and are used to make extended functionality avalible. Some of these modules write their own logs etc. I was thinking about how to implement installation and uninstallation behvaiour for these modules.</p> <p>At first my idea was to let every module have a <code>InstallationController</code>, <code>UninstallController</code> etc and have these handle the installation. But then I started thinking about an approach that would involve letting each module contain <code>install.ini</code>, <code>uninstall.ini</code> etc. Then the core has functionality to pare and act upon these. An example of an <code>uninstall.ini</code> for the module <code>foo</code> file could be</p> <pre><code>[save_logs] folder.remove.data.foo folder.remove.modules.foo file.remove.configs.foo [complete : save_logs] file.remove.logs.foo db.table.truncate.foo_table1 db.table.truncate.foo_table2 </code></pre> <p>Then the user would be presented with the options of <code>Complete</code> or <code>Save Logs</code> while running the uninstallation of the <code>foo</code> module. One of the upsides I can see with this approach is a common core mechanic that handles all the operations and the fact that no code actually part of the <code>foo</code> module would be running during the uninstallation.</p> <p>I have never done this type of installation/uninstallation/update support on a webapp before so any ideas and tips would be nice.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload